画像の数値を読み込む方法(可能であればProgramも教えていただきたいです。)
12 views (last 30 days)
Show older comments
pngまたはJpegの画像内の数値をMATLABで読み込みテーブルにデータを保存する方法が分からないので教えていただきたいです。
0 Comments
Answers (1)
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);
0 Comments
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!