Comparing Image with Upper and Lower limit

Asked by Matthew Barthe on 2018-01-29

Relatively new to Sikuli and I was looking into the possibility of comparing an image using something akin to an upper and lower limit. Essentially I have an image that contains a lot of static detail, but I have one component which moves based on a float value. Because it is a float, it's position can vary slightly but I have screen shots of it at it's max and min acceptable deviation. Is there any way to check if a screenshot is in-between these two images?

Essentially I am wondering if there is something I can call that is akin to Wait(UpperLimitImage, LowerLimitImage) or will I need to in some way do an If check on my two acceptable range screenshots and play with the match % to obtain my desired result?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-01-29
Last reply:
2018-01-29
RaiMan (raimund-hocke) said : #1

you might try with findBest() or findAny(), depending on what suits better.
see docs:
http://sikulix-2014.readthedocs.io/en/latest/region.html#find-more-than-one-image-in-a-region-at-the-same-time

Only available in 1.1.2 nightly!

In an earlier version, you have to use 2 exists() one after the other and work with the match results.

Advantage of the 1.1.2 features:
are run in parallel against the same screen/region content

Can you help with this problem?

Provide an answer of your own, or ask Matthew Barthe for more information if necessary.

To post a message you must log in.