Inconsistancy in Image recognition with multiple runs of scripts

Asked by parimala mallepally

i am facing image recognition issues ....on multiple runs of the script on the same application with no changes.

for example: click(image)

There is no change in the application(or even i didnot build it again). yesterday i have executed the script for more than 5 times and it worked fine. But today when i ran the script, its not recognizing one or two images and not clicking on those images. If I change the similarity then its recognizing.

My question is: for and each every run do i need to change the similarity, even though there is no change in the application.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
parimala mallepally (parimala-mallepally) said :
#1

Note: I even i have given extra wait(n) time inorder to load the page fully.

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

It might be dependent on slight changes of background.

Capturing too much background is a problem in many cases. If you have to reduce the min similarity, than this is a hint on bad captures.

So recapture the images, so the capture concentrates on the really significant parts of the image while avoiding the capture of background as much as possible.

Can you help with this problem?

Provide an answer of your own, or ask parimala mallepally for more information if necessary.

To post a message you must log in.