関心領域を指定して日本語の文字認識を行うには

7 views (last 30 days)
有輝 後藤
有輝 後藤 on 6 Sep 2022
Answered: Kojiro Saito on 7 Sep 2022
日本語の言語データファイルをダウンロードし、画像の関心領域を指定して、日本語の文字認識をしようとしているのですが、
以下のプログラムで日本語の文字認識をするには、どのように内容を変換すればよいですか?
I = imraed('gazou.jpg');
figure;
imshow(I);
roi = round(getPosition(imrect));
ocrResults = ocr(I, roi);
Iocr = insertText(I, roi(1:2),ocrResults.Text,'AnchorPoint',...
'leftbottom','Fontsize',32);
figure;
imshow(Iocr);

Accepted Answer

Kojiro Saito
Kojiro Saito on 7 Sep 2022
ocrLanguageオプションを指定できます。
ocrResults = ocr(I, roi, 'Language', 'Japanese');
精度が出ない場合はこちらのドキュメントを参考に学習させることもできます。

More Answers (0)

Tags

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!