← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680957]: Find an image gives error

 

Question #680957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680957

    Status: Answered => Open

Ed Chmiel is still having a problem:
Thank you for the reply.

I replaced the file name as suggested, and also tried launching the
program such that the app window is the approximate size of the match
png. The error shows below as no match.

Am I mis-understanding the ability of the program to compare screens?

Also, why is one image INT_RGB (2560x1440) and the other 3BYTE_BGR
(2554x1394)? Could this be the problem?

Thanks in advance.

[log] DOUBLE CLICK on L[113,546]@S(0) (573 msec)

[log] DOUBLE CLICK on L[1276,616]@S(0) (571 msec)
[debug] Image: reused: 1558389881477.png (file:/C:/SikuliX/pw1.sikuli/1558389881477.png)
[debug] Region: find: waiting 0 secs for 1558389881477.png to appear in R[0,0 2560x1440]@S(0)

[debug] Finder2: makeMat: INT_RGB (2560x1440)
[debug] Finder2: makeMat: 3BYTE_BGR (2554x1394)

[debug] Finder2: doFind: start (stdDev: 295.1653 mean: 274.987375)

[debug] Finder2: doFind: in original: %3.8143 (?70) 282 msec 
[debug] Finder2: doFind: end 282 msec
[debug] Region: find: 1558389881477.png did not appear [463 msec]
[debug] Region: handleFindFailed: C:\sikulix\pw1.sikuli\1558389881477.png
[error] script [ pw1 ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\SikuliX\pw1.sikuli\pw1.py", line 7, in <module> returnMatch = find(match) Line 2407, in file Region.java 
at org.sikuli.script.Region.find(Region.java:2407)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
org.sikuli.script.FindFailed: FindFailed: 1558389881477.png: (2554x1394) in R[0,0 2560x1440]@S(0) Line 2407, in file R

egion.java

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.