sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40915
Re: [Question #404660]: Multiply find images
Question #404660 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404660
Status: Open => Answered
RaiMan proposed the following answer:
use SikuliX 1.1.1 and use:
imgs = (img, img1, img2, ...) # see comment
found = os.path.split(findBest(imgs).getImageFilename())[1]
popup("%s is #%d" % (found, imgs.index(found)))
comment: (img, img1, img2, ...) is a list (tuple) of image filenames.
This might be programmatically constructed as a list [...] of image file names
the feature Region.findBest() is not yet documented. the listed images
are searched in parallel at the same time and the match with the highest
score is returned. To identify the index of the found image in the list
you have to find the match's image filename in the list of images.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.