How can I enter the precision value in exists function?

Asked by April L

Hi. I would appreciate if someone could help me with this. The image I want to find is very small. When I use exists("image.png",1) it is not able to find the image. Is there any way I can decrease the precision value of the exists function?

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

small means what? pixel x pixel?

Revision history for this message
April L (april96) said :
#2

19pixels x20 pixels

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

images down to 10x10 and smaller are found without problems.

If background matters (changes in situations) take care, that the image contains as little background as possible towards the edges.
Concentrate on the key visual.

Revision history for this message
April L (april96) said :
#4

The image exists on the screen multiple times with very slight changes in background. Is there a way to decrease the precision of exists function?

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

If the center parts of the image have changing background, then you are in trouble ;-) maybe ;-)

The standard precision score is 0.7, which is already risky to get false positives.

similarity is an attribute of the image and managed by using the Pattern class:
http://sikulix-2014.readthedocs.io/en/latest/pattern.html

Make your experiences

Revision history for this message
April L (april96) said :
#6

Thanks RaiMan, that solved my question.