How can I enter the precision value in exists function?

Asked by April L on 2018-05-17

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

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

small means what? pixel x pixel?

April L (april96) said : #2

19pixels x20 pixels

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.

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?

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:

Make your experiences

April L (april96) said : #6

Thanks RaiMan, that solved my question.