← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679131]: Different screen resolutions for Sikulix2 ?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
SikuliX2 is still far away - and no, even in the current alpha
implementation, there is no solution for that.

A different resolution can do the following to a given image:
1: nothing: the image has the same size measured in pixels, but looks smaller or larger 
2: the image is regularly resized with a standard algorithm (hence it contains more or less pixels, which means a different size)
3. the image is distorted (width and height are changed with different ratios)

case 1: no problem with SikuliX, since the images are the same at the
pixel level

case 2: you might succeed, when you just resize your images on the fly
according to the ratio old-to-new-resolution (there is a feature in
SikuliX to support that:
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#Settings.AlwaysResize)

case 3: not supported currently in SikuliX. Hence you need additional
image sets. But if you know the algorithm, you might create a new set
with an image program or a Python script and the fitting add-ons.

--- Perceptual Hash
IMHO is a concept, to compare 2 images efficiently by comparing their compact hash-value, generated before (perceptual hash). hence it does not help, to find an image in another image.

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