Explicitly set the font to be used for recognition

2020-03-01 07:39发布

问题:

I have documents which use only one font throughout the document. Different documents might have different fonts, but I know which document uses which font.

Is there an option to explicitly tell Tesseract-OCR which font to use during recognition for a given image?

回答1:

No, I don't think Tesseract supports such an option. What you can do is to train for one specific font and then specify that traineddata during recognition of your documents.