Reading image text

Asked by Emmanuel Mbambo

I'm trying to read text from an image using sikuli java. I know I must use region.text(); the problem is I'm getting a very inconsistent results. In fact the image is a one line of numbers, one dot and only one character, like 1.02x or 13.58x etc. But sometimes instead of maybe 3.93x I will get dy2b sometimes 04t.

How can I fix this, can I show you my examples, if so how and where can I attach them so you can see.

Thank you

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ben Dix (bendix80) said :
#1

hi,
i also had some trouble.
I get much better results using a whitelist for letters and numbers.
this was how I setup my whitelist on Mac, added "." and "x" for your needs:

OCR.globalOptions().variable("tessedit_char_whitelist", "0123456789.x")

good luck

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.