← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #384265]: Unable to find images on identical monitors

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- Why would it not run the same on two identical monitors displaying exactly the same thing?
You might have this impression, by just LOOKING at the images. But their MUST be differences on the pixel level, usually at the edges of contained graphic elements (anti-aliasing, font differences, ...).
You might check with an image viewer, that allows to look at the magnified images at the pixel level.

Take care, that your images concentrate on the graphic content, that
makes it unique, and have as little background as possible towards the
edges.

So you either manage, to have REALLY IDENTICAL environments with respect
to the pixel level, or you need different image sets for different
environments.

This situation will not change as long as SikuliX find feature uses
OpenCV's matchTemplate(), but version 2 will have better support, to
create a different image set on the fly when running a workflow, that
does not work caused by these symptoms.

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