sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24138
Re: [Question #243857]: Is it mandotory to maintain same resolution for all team who are working sikuli?
Question #243857 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243857
Status: Open => Answered
RaiMan proposed the following answer:
resolution does not really matter.
What matters are the pixels in the image, as they exist as an RGB value
per pixel, after the image is loaded. The image has a specific width and
height.
The requirement for a successful find on the screen using this image are:
- the image on the screen must have the same width and height in pixels
- the pixels in the image on the screen itself must match with the respective image pixels on the screen with respect to their RGB values. If all pixels have the same RGB values, then we have an exact match (1.0)
So when using the same image on different machines or even in different browsers, it depends on how this image would be rendered to the screen on that specific system. If the rendering process produces an image that fullfills the above requirements, you will have a match.
If either width or height differ (might be with specific screen setups, that lead to other ratios): no chance for a match.
If a different rendering only leads to some different pixels (usually at edges in the image), then it might be found, depending on the requested similarity and the resulting score.
If the other system setup leads to "no-match", then you either have to
use different image sets or adjust the settings of the screen.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.