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

Viewed 2989

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 ?

1 Answers

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

Related