Sikuli not working changing screen size

Asked by Sandeep Reddy

Hi Team,

We have implemented a sikuli script, in a few projects. Sikuli script falling in below scenario,

when we change physical monitor but we maintain same display setting (1280 * 1024). script was failed could you please assist me how to achieve.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
TestMechanic (ndinev) said :
#1

Open IDE and try to find elements. If you can't you changed something else like dpi

Revision history for this message
funtikar (funtikar) said :
#2

Not an answer and not elegant way to do it
I developed a script for my department... my department's old PC use 1280x1024 too I have tried using the same display settings at home using my 1080p laptop but it feels different still... I had a pc lying around and bought an old 1280x1024 monitor works super well...

Revision history for this message
RaiMan (raimund-hocke) said :
#3

images on other systems must be rendered to screen the same size (width and height) in pixels as captured with the script.

Other aspects are changes in contained fonts (text), anti-aliasing, edge-smoothing and more.

So when going to another system check with one reference image (e.g. in the IDE) and in doubt adjust parameters.

You might as well compare a given image visually using a viewer, that can scale up to pixel level, with an actual shot of the same image now on screen.

As long as SikuliX only uses OpenCV's matchTemplate for image search, we have to live with this situation.

In doubt you need different image sets for each different screen situation.