Sikuli is struggling to find images without the similarity being really low

Asked by Cole Grant Berry

Hi Support,

I have been trying to automate a UI using Sikuli 2.0.4 in Java using IntelliJ IDE. Sikuli is integrated into a Maven framework, where the dependency is stored in the POM.xml file.

The issue that I am facing is that I need to set the Sikuli similarity in the range of 5% to 30% in order for Sikuli to recognize an image -for the automation to pass. This low similarity is totally unacceptable, as it provides for very low validation.

I've tried, resizing the images, taking several different screen snippets on a high definition display and playing around with the similarity using the setDebugLevel, but nothing seems to solve my problem.

Any assistance on this matter would be highly appreciated.

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
Best RaiMan (raimund-hocke) said :
#1

The screenshots have to be taken with the SikuliX IDE or with your own capture tool based on Sikulix (Screen -> userCapture() -> save the images).

The experience with shots taken with other Windows tools is unsatisfying.

If the image is taken with as little surrounding background as possible/makes sense and the image is visible with the same pixel size the score should be 0.95 and higher. The SikuliX IDE Preview can be used to validate the images.

To start, you should have your monitor unscaled (100%).
With Java 11+ you might try in scaled modes also.

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

You might also switch to SikuliX 2.0.5.

Revision history for this message
Cole Grant Berry (colegb) said :
#3

Hi RaiMan, thank you so much!

Please forgive my ignorance, but how would I run/open SikuliX IDE from the .jar file?

I'll definitely try using SikuliX IDE to take the screen shots instead.

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

http://sikulix.com

latest stable version: 2.0.5

The download site helps with HowTo.

Revision history for this message
Cole Grant Berry (colegb) said :
#5

Thank you very much RaiMan! I appreciate your help so much!

Revision history for this message
Cole Grant Berry (colegb) said :
#6

Thanks RaiMan, that solved my question.