← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #239561]: identifing one between 2 namesake buttons

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
- take care, that the button shot has as little background as possible (just around the button borders)
- with version 1.0.1: use Pattern("button-image.png").exact()  (with RC3: Pattern("button-image.png").similar(0.99))

In any case this always helps to speed up things and make them more robust against false positives:
evaluate and use a search region that is as small as possible

... but in most cases already the usage of Pattern().exact() together
with "good" shots is sufficient (you might use the Preview window to
adjust wanted min similarity)

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