Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tesseract OCR: is it possible to force a specific pattern?

I'm using Tesseract and I want to develop an app that is able to recognize a sequence of characters. I had good results but not exellent.

The characters sequence I want to read has always a specific pattern, let's say:

number number number char char - (e.g.: 123AB)

Is there a way to "tell" the ocr engine that the structure is always fixed, in order to improve the results of the recognition?

Thank you in advance.

like image 236
stei2348 Avatar asked Oct 22 '22 17:10

stei2348


1 Answers

Try bazaar matching pattern in Tesseract:

\d\d\d\c\c
like image 100
nguyenq Avatar answered Oct 24 '22 17:10

nguyenq