画像の数値を読み込む​方法(可能であればP​rogramも教えて​いただきたいです。)

11 views (last 30 days)
優希史 大仲
優希史 大仲 on 15 Jun 2023
Answered: Atsushi Ueno on 17 Jun 2023
pngまたはJpegの画像内の数値をMATLABで読み込みテーブルにデータを保存する方法が分からないので教えていただきたいです。

Answers (1)

Atsushi Ueno
Atsushi Ueno on 17 Jun 2023
単位「℃」は上手く認識されませんでした。
本回答のプログラムを実行するには Image Processing Toolbox が必要です。
src = "https://jp.mathworks.com/matlabcentral/answers/uploaded_files/1411019/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-06-15%2014.58.20.png";
I = imread(src);
v = ocr(im2gray(I) < 240); % 白い画素が浮き出る様二値化し、文字認識OCRツールに通す
Iocr = insertObjectAnnotation(I, 'rectangle', v.WordBoundingBoxes, v.Words);
figure; imshow(Iocr);

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!