← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678309]: Gradually reducing MinSimilarity

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
in the IDE itself you can check the similarity score:
- click on the image
- in the window coming up in the tab matching preview play around with the slider at the bottom

your script trial would look like:

simValue = 1
while True:
    if not exists(Pattern(image).similar(simValue), 0): # see comment
       simValue -= 0.01
       continue        
    # do something when found
    break

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