Is it mandotory to maintain same resolution for all team who are working sikuli?

Asked by basha

1.why script recorded in on machine is not working propery on ohter machine.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
basha
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

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.

Revision history for this message
basha (mdbasha7862) said :
#2

Thanks RaiMan.Above Solution solved my problem