Sikuli says empty page when reading text

Asked by JA46

I set up sikuli api on java eclipse then installed tesseract now I select a region and tell sikuli to read it but it says empty page tried to search the internet it says psm need to be set to 8 but i dont know how
anyone can help fix i am trying to read sequence of letters on white background and letters are either red or black

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
JA46 (jga123) said :
#1

Edit the psm needs to be set to 10 ( single character per image ) but i dont know how to set it in sikuli

Revision history for this message
RaiMan (raimund-hocke) said :
#2
Revision history for this message
JA46 (jga123) said :
#4
Revision history for this message
JA46 (jga123) said :
#5
Revision history for this message
JA46 (jga123) said :
#6
Revision history for this message
RaiMan (raimund-hocke) said :
#7

For OCR internally we use Tesseract, which can be trained for new fonts/symbols.

... but is beyond the scope of SikuliX support - visit the respective Tesseract docs/tutorial

Revision history for this message
JA46 (jga123) said :
#8
Revision history for this message
JA46 (jga123) said :
#9
Revision history for this message
RaiMan (raimund-hocke) said :
#10

Yes, that is all possible.

You have to look into the docs and for examples in the net.

I recommend to use the SikuliX IDE for your first trials (especially for capturing the needed images), before fiddling around with the Java level.

If you have specific questions about SikuliX features, come back here with a new question for every topic, best with your coding samples.

Can you help with this problem?

Provide an answer of your own, or ask JA46 for more information if necessary.

To post a message you must log in.