Best font name to use with OCR function

5 vues (au cours des 30 derniers jours)
sharief hussien
sharief hussien le 28 Mai 2018
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?

Réponses (1)

sharief hussien
sharief hussien le 2 Juin 2018
Waiting

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by