Extract text from bright background color image(yellow)

38 views
Skip to first unread message

April Shar

unread,
May 21, 2019, 5:51:48 AM5/21/19
to tesseract-ocr
I'm using tesseract 3.0.2, seems like it cannot read text with very bright background (see image). Is there a way to do so? Microsoft Azure works better and can read the text.
WIN_20190521_16_33_13_Pro.jpg

Jason

unread,
May 21, 2019, 10:15:17 AM5/21/19
to tesseract-ocr
Simple thresholding should work. You'll have to use something like OpenCV or your own routine if you are daring. If you convert to gray, anything less than 64 (out of 255) goes to black, and anything above that goes to white.

April Shar

unread,
May 22, 2019, 9:32:24 PM5/22/19
to tesseract-ocr
Will it still recognize black/white text if thresholding?
Reply all
Reply to author
Forward
0 new messages