sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34460
Re: [Question #271036]: Text Search and OCR / Sikuli's Text Recognition
Question #271036 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271036
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
You can use text recognition like that:
Settings.OcrTextRead = true;
Region sc = new Screen(0);
sc.findText("text").highlight(1);
Text recognition doesn't always work as expected. In many cases the text will not be recognized.
To see what is exactly recognized on your current screen, you can try to read the whole screen and check whether the text you are trying to find was detected:
Region sc = new Screen(0);
System.out.println(sc.text());
It is possible to fine tune the Tesseract to better recognize your specific font. You can try and Google it.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.