Region.Exists display file not found error when checking ocr text

Asked by Krzysztof Guć

Hello Guys

J have simple code:

f=exists("Komputer")
f.highlight(2)

Working ok, but show error, "Image: could not be loaded"

[error] Image: could not be loaded: file:/C:/Users/pw05600/Desktop/1.sikuli/Komputer.png
[log] highlight M[395,664 52x12]@S(S(0)[0,0 1920x1200]) S:1,00 C:421,670 [1460 msec] for 2.0 secs

It is possible disable this errors?

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

Sorry, currently not.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

... but a workaround for 1.1.0+ is to use instead:
f = findText("....")

Can you help with this problem?

Provide an answer of your own, or ask Krzysztof Guć for more information if necessary.

To post a message you must log in.