← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #289832]: In matching preview it can find but it fails in script

 

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

RaiMan proposed the following answer:
--- If only a little data changed, it will not be detected.
this is how it should be, when using exact (meaning a match score >0.99).
it usually means, that ALL pixels in the screen have the same color as the pixels in the given image.
 
--- Why in matching preview it can find but it fails in script?
this is an inconsistency between the two methods used internally and will only be fixed in version 2.

Usually all resulting scores >0.97 can be taken as exact match.

read this to understand how SikuliX works:
http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

prior to version 1.1.0 Pattern().exact() does not always work as
expected - so be sure to use 1.1.0+

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