Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 644
ybdesire Avatar asked Sep 27 '17 00:09

ybdesire


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

like image 50
tifi90 Avatar answered Oct 18 '22 18:10

tifi90