← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #259550]: issue in comparing two images

 

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

RaiMan proposed the following answer:
-- at comment #6
@Eugene
of course your approach is suitable in cases, where you know the spots, where 2 images might differ.
But in this case, this is not necessary, since the similarity score already differs (0.99 versus 1.00)

Generally your approach is only a workaround for the current weak implementation (score rounded to 2 decimals).
If 2 images differ in some pixels, then this should be detectable.
The solution is, to work with the original float values, that might show the fact "we are different" only in some decimal position beyond the 3rd (which now makes the difference).

Since this cannot be fixed easily, but needs a revision in my places
including native code, I have put it on the list for version 1.2.

BTW:
since we have a change detection with the observe feature already (onChange), I guess, it is rather easy to add a feature, that might return a list of areas in the image, that contain differences between 2 images. (also something for 1.2).

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