tesseract to recognize the cropped digits

61 views
Skip to first unread message

abhishek gupta

unread,
Feb 14, 2018, 5:15:01 AM2/14/18
to tesseract-ocr
I want to read this digit in this image but tesseract shows it as empty page.I tried as

tesseract i.png stdout digits
1.png
Message has been deleted

ada...@turningcloud.com

unread,
Feb 15, 2018, 2:27:05 AM2/15/18
to tesseract-ocr
Hi Abhishek,
hope you are doing well.
What you need to do is to pre-process the image. Conver it to binary file or invert the colors to black and white. then what you can do is use opencv to draw a contour on the number. then that contour can be cut out and sent to tesseract.
I can provide you the contour detection coe if you want. Revert back for any query.
Keep up the good work.
Reply all
Reply to author
Forward
0 new messages