← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #670724]: Trouble finding matches for images

 

Question #670724 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670724

RaiMan proposed the following answer:
since generally the captured image are fix and do not change, there must
happen some changes on the screen in the area, where you think your
capture should be found.

The smaller the images the fewer changing pixels may lead to this
effect.

I have to admit, that these situations are hard to debug.

this might be helpful:
if not exists(img):
  saveLastScreenImage()
  exit(1)

where img is the offending image.

You will have a LastScreenImage.png (the screenshot, where in your image
was not found) in the folder SikulixStore in the <sikulix appdata>
folder (see docs).

all the best

visually compare the image with the

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.