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

    Status: Open => Answered

RaiMan proposed the following answer:
Read and understand:
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

your problem probably is this:
Pattern().exact() internally checks, wether the match score is >0.99.
If you only make slight changes to the image, then this apparently still gets 
checked as matching.

You have to use a solution, where you check the match score yourself
with all its decimals:

found =  r.exists(pimage, 5)
if found and found.getScore() > 0.9999: # see comment
   print "Screen matches 3D_Reciprocating_Saw_Gold, test passed"
   r.highlight(2)
else:
   print "Screen failed match of 3D_Reciprocating_Saw_Gold, test FAILED"

comment: the challenge here is, to decide which value to use for the
comparison decision match/not-matching (the reference value)

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to