← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #670724]: Trouble finding matches for images

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- Preview colors
the colors with that matches are shown correspond to the color bar below the similarity slider:
- reddish: similarity high >0.85
- pinkish: similarity medium: around 0.7
- other colors: low <0.6

--- image quality
see: http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen
images should always be found with a score above 0.8 - 0.9.
images that get a lower score bare the risk to not be found or even create false positives.

--- Preview difference to score at runtime
When running the script, similarity scores are rounded to 2 decimals.
Preview internally uses findAll() and handles the score fully as float values without rounding.
This may lead to inconsistencies as you have.

--- suggestions

1. recapture your image, so it has as little background towards the
edges and concentrates on the key aspects. This should give you a
similarity score beyond 0.8 - 0.9.

2. IDE feature "Show": in the top bar of the IDE there is a button "Show", that works so:
- put the cursor somewhere in the line with the image/pattern
- take care that the image is visible on the screen
- click the button
- the image should be found and highlighted (if not: nothing happens, null is written in the message area)
For just checking this is slightly better than Preview, because it internally uses the find feature. 
I will revise this feature to be more verbose.

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