← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680969]: How to handle image pattern find between systems

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sorry, but this will always be a problem with SikuliX with its pixel-
based approach.

there are 2 conditions:

--1: the image searched on the target system must be shown with the same
size in pixels (width and height)

--2: the pixels must be the same with respect to their RGB value.

condition 1 is a must, whereas condition 2 might not be matched exactly,
which leads to lower similarity scores, the less pixels are identical.

condition 1 should usually be possible to meet by a correct graphical
setup.

how good condition 2 can be met, depends on the rendering process of the
system/application. If the rendering implementation is the same, one
will get the same image on the current screen as that captured on
another screen. One example is the handling of edges in image (anti-
aliasing). another is the background-problem: on another system the
background is different (e.g. GUI setup) and the captute contains too
much background (should be less than 10 - 12% of the pixels).

So if condition 2 cannot be met, then you need a different image set for
every different rendering situation.

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