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

7 次查看(过去 30 天)
有輝 後藤
有輝 後藤 2022-9-6
日本語の言語データファイルをダウンロードし、画像の関心領域を指定して、日本語の文字認識をしようとしているのですが、
以下のプログラムで日本語の文字認識をするには、どのように内容を変換すればよいですか?
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);

采纳的回答

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

更多回答(0 个)

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!