Best font name to use with OCR function

I have a hexadecimal text X='ABCD1234', i wirte it into an image I='Background.bmp' using : >> p=[1 1]; >> IMG= rgb2gray(insertText(I,p,X,'Font','Arial Black','FontSize',23,'TextColor','Black')); then, i am trying to get this text back from the image using the built-in function OCR like this: >> I=imresize (I,[2.5*R C]); I=imbinarize(I); >> ocrtxt=ocr(I,'TextLayout','Word','Characterset','0123456789ABCDEF'); Recovered_txt=ocrtxt.Text; But it always gives me errors like: it reads 'A' as '11', 'B' as '8', 'D' as '0'. what is the best (font name) and (font size) for best results?

답변 (1개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품

릴리스

R2016b

태그

질문:

2018년 5월 28일

답변:

2018년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by