← Back to team overview

sikuli-driver team mailing list archive

[Question #403864]: sikuli incorrectly matches differing images despite exact()

 

New question #403864 on Sikuli:
https://answers.launchpad.net/sikuli/+question/403864

We are trying to use Sikulix-1.1 for automated QA. The OS is Windows 7 professional 64bit (the java is 32-bit), we are using Jython.

In our test, we need to verify that images match exactly. To verify the test works, we use a slightly modified image (in a way that is significant for our test), to see if sikuli will catch the problem.

Even with find(Pattern(<image>).exact()), sikuli incorrectly assumes the images are matched.

Interestingly, Matching Preview does NOT show the images to be matched at precision below 0.96.

N.B. We do have Image.reset() at the start of the script, and the same behavior occurs when launching from the command line, so this is not an IDE image caching issue.

N.B. The background is dark but not exactly black, so this isn't the 'sikuli doesn't work correctly on black background, either', although that's potentially a bad one for us too.

I've attached what we have on the screen, what we're looking for and what the actual difference is (shown via red rectangle on the first image).

Is there a way to make it work? We are now worried that all the tests we write in sikuli are potentially useless as they don't detect differences...

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