sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36007
Re: [Question #272495]: images with different resolutions or high similarity
Question #272495 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272495
RaiMan posted a new comment:
@Lucas
With version 1.1.0+ there is a not yet documented option, to resize an image with a SikuliX feature also:
img = Image.create("some_image.png")
print img
imgNew = Image(img.resize(factor)) # factor < 0 smaller, > 0 larger
print imgNew
imgNewFile = imgNew.asFile() # store in temp folder
print imgNewFile
... and this is possible then
if exists(imgNew):
print "found"
Currently the feature internally used is the one of Java AWT for a BufferedImage.
In version 2 the OpenCV features will be used, which are more flexible with more options.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.