OCR - text not found on screen even if it is displayed

Asked by george munteanu

Hi,

Some text is not found on screen even if it is displayed.

the code that works is:
Settings.OcrTextSearch = True
Settings.OcrTextRead = True
navigateText = "Navigate"
popup ("Found " + navigateText)

the code that that does NOT work is: (the only difference is the keyword)
Settings.OcrTextSearch = True
Settings.OcrTextRead = True
navigateText = "incoming"
popup ("Found " + navigateText)

Sikuli returns:
[error] FindFailed ( can not find incoming on the screen. )

Note:
a) I do not have any image named: incoming.
b) String: "incoming" is shown once on screen.
c) As a workaround I will use images.

If you have any idea please share.

Take care,
George

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
RaiMan (raimund-hocke) said :
#1

somewhere you surely have something like:
match = find(navigateText)

the weakness of the text feature is a known problem.
It is planned to improve it in version 2 later this year.

For now you have to live with it.

If find(text) does not work, you have indeed switch to using images.

Can you help with this problem?

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

To post a message you must log in.