← Back to team overview

sikuli-driver team mailing list archive

[Question #236061]: Why my pattern can not be found during run but can be found in offline

 

New question #236061 on Sikuli:
https://answers.launchpad.net/sikuli/+question/236061

Hi, 

I am new to Sikuli. I am running the latest Sikuli on Win7x64.  Here is my code to detect the top of this page:
Settings.MinSimilarity = 0.5
find("SikuliCodeOx-1.png")

My run gets the following exception:

[error] Stopped
[error] An error occurs at line 2
[error] Error message: Traceback (most recent call last):
 File "C:\Users\cwang359\AppData\Local\Temp\sikuli-tmp6722132181426107802.py", line 2, in 
 find("SikuliCodeOx-1.png")
 Line 9, in file C:\Users\cwang359\AppData\Local\Temp\sikuli-tmp6722132181426107802.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:420) 
at org.sikuli.script.Region.wait(Region.java:511) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 

org.sikuli.script.FindFailed: FindFailed: can not find SikuliCodeOx-1.png on the screen.
 Line 9, in file C:\Users\cwang359\AppData\Local\Temp\sikuli-tmp6722132181426107802.py

If I click on the image and choose the Matching Preview tab, it can be found with similarity setting and 0.7.  The similarity is 0.95.

Why my pattern can not be found during run but can be found in offline--even after I lower the similarity level from 0.7 to 0.5?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.