ybdesire
ybdesire

Reputation: 1713

How can I recognize text with little math symbols by tesseract OCR?

My text with some not such complex math symbols as below.

enter image description here

enter image description here

Tesseract OCR default cannot recognize such math symbols (+-, angle). How can I recognize such math symbols by tesseract ?

Upvotes: 8

Views: 4685

Answers (1)

tifi90
tifi90

Reputation: 413

just use the following statement:

pytesseract.image_to_string(Image.open(img), config='-l eng + equ')

Also make sure pytesseract is trained with equations.

tifi

Upvotes: 2

Related Questions