日本語の文字認識を行うには

10 vues (au cours des 30 derniers jours)
有輝 後藤
有輝 後藤 le 24 Juil 2022
Modifié(e) : Hiro Yoshino le 25 Juil 2022
日本語の言語データファイルをダウンロードし、画像の関心領域を指定して、日本語の文字認識をしようとしているのですが、
以下のプログラムで日本語の文字認識をするには、どのように内容を変換すればよいですか?
I = imread('handicapSign.jpg');
roi = [360 118 384 560];
ocrResults = ocr(I, roi);
Iocr = insertText(I,roi(1:2),ocrResults.Text,'AnchorPoint',...
'RightTop','FontSize',16);
figure; imshow(Iocr);

Réponses (1)

Hiro Yoshino
Hiro Yoshino le 25 Juil 2022
Modifié(e) : Hiro Yoshino le 25 Juil 2022
I = imread('handicapSign.jpg');
roi = [360 118 384 560];
ocrResults = ocr(I, roi); %ここを変更
Iocr = insertText(I,roi(1:2),ocrResults.Text,'AnchorPoint',...
'RightTop','FontSize',16);
figure; imshow(Iocr);
ocr 関数のデフォルトは英語なので
orc(I,'Language','Japanese')
とする必要があります。

Catégories

En savoir plus sur Computer Vision Toolbox dans Help Center et File Exchange

Tags

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!