← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #260130]: How to find and click 100% or 99% match images in sikuli?

 

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

    Status: Needs information => Answered

Eugene S proposed the following answer:
@M

Are you interested in finding objects with 99% match specifically?

If so you can try this to check found object's similarity score like
that:

res = find(pattern)
print res.getScore()

In case of an exact match, you will get:
1.0

In case of non 100% match, you will get something like this:
0.997599840164

Then you can work with these numbers.


Eugene

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