sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34622
Re: [Question #271428]: I would like to compare an image to the screen
Question #271428 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271428
masuo posted a new comment:
You need to specify whether to determine a match with how the degree of
similarity .
http://sikulix-2014.readthedocs.org/en/latest/pattern.html
excerpts from pattern.html:
Sikuli searches the region using a default minimum similarity of 0.7. This default value can be changed in Settings.MinSimilarity.
The IDE supports adjusting the minimum similarity of captured images using the Preview Pane (internally in the script, the images are turned into a pattern object automatically).
example1(minimum similarity of 0.95):
if exists(Pattern("1442408970638.png").similar(0.95)):
popup("Screen matches!")
example2(minimum similarity of 0.99):
if exists(Pattern("1442408970638.png").exact()):
popup("Screen matches!")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.