← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #256236]: Differing images matched with very high similarity

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Setting the default similarity to 0.98 is high risk. 
You have to have very good snapshots: as little surrounding even background as possible and hence concentrating on the visual aspects making the difference. Version 1.2 will have a feature to optimize snapshots in this direction.
But till then, you have to try to get optimal images yourself.
This is surely the problem with your gray image.

So with the current implementation a practical value to be used for
default similarity is 0.95, when your workflow expects exact matches and
you allow your snapshots to be slightly less than optimal.

Especially black and white areas as background in the current implementation still may lead to false positives, if the number of background pixels exceed 10 to 20% of the total amount of pixels in the image.
Here currently the only possibility is to concentrate on the non-black/non-white areas.
in your case the areas where the symbols appear.
Version 1.2 will have better support for these situations.

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