Sikuli X cannot identify colours correctly

Asked by Shane Kalpage

Hi,
We upgraded from version 0.10.2 to X and our automated test that detect for colour changes have stopped working.

The GUI application we are testing has some indicators that change colour to warn the user of potential problems. We have some Sikuli tests that test this feature, and since the upgrade the tests are no longer able to detect the colour change.
These tests worked very well in version 0.10.2.

Even after knocking the Similarity up to 1.0 it cannot distinguish between Yellow and Red.

How do we fix this ?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Shane Kalpage
Solved:
Last query:
Last reply:
Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#1

Were you using X1.0-RC2 or RC1? RC1 had a bug that can't distinguish colors, but it should be fixed in RC2.
If you were using RC2, please attach the image files that caused this problem so we can reproduce the bug.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

This seams really to be a bug in the new vision engine. Others reported similar problems.

But I cannot find the questions/answers in the moment

You should report it as a bug.

Revision history for this message
Shane Kalpage (shane-snsys) said :
#3

We spent some time tuning the similarities and we did manage to get the tests working with reasonable portability.
We did have to knock the similarity higher than we did in version 10.2 but it does work.

We were a bit mislead by the "Matching Preview" in the editor as it sometimes indicates that it is unable to find an image at a particular similarity; however if you run the script, it does find the image correctly.