How does similarity work?

Asked by Karl

I am updating some images for some tests and noticed that sikuli acts a little differently with some of the images I'm using.

For instances:
1. I had a Modify button (81x31) that was captured, but when retested the Hide button was found. Similarity needed to be increased.
2. I had a language indicator image (140x11) that could not be found when retested. Similarity needed to be decreased.

I understand the principle of less background and focus on differentiators, plus use regions. These don't seem to be helping though.
When I looked at the two images of instance 2, they seemed pixel for pixel the same, but Sikuli saw the difference between the two.

I read the article on the OpenCV matchTemplate, but that's not similarity, is it?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

possible to send me samples and relevant parts of screenshots?
sikulix--at--outlook--dot--com

Revision history for this message
Karl (k-d) said :
#2

Yes.

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

got them.
will come back on that tomorrow.

Revision history for this message
Karl (k-d) said :
#4

Thank you.

Revision history for this message
Karl (k-d) said :
#5

Thanks RaiMan, that solved my question.