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

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

 Respuesta aceptada

Kojiro Saito
Kojiro Saito el 7 de Sept. de 2022

0 votos

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

Más respuestas (0)

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 6 de Sept. de 2022

Respondida:

el 7 de Sept. de 2022

Community Treasure Hunt

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

Start Hunting!