画像の数値を読み込む方法(可能であればProgramも教えていただきたいです。)
Show older comments
pngまたはJpegの画像内の数値をMATLABで読み込みテーブルにデータを保存する方法が分からないので教えていただきたいです。
Answers (1)
単位「℃」は上手く認識されませんでした。
本回答のプログラムを実行するには 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 光学式文字認識 (OCR) 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!