sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47598
Re: [Question #670183]: Count the number of pictures
Question #670183 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670183
Status: Open => Answered
RaiMan proposed the following answer:
It finds more then the 2 you expect, because of standard similarity
score of 0.7.
Either use:
s.findAll(new Pattern(s1.prop("sm378")).similar(0.99)) //adjust as needed
or filter the matches in the def:
while (a.hasNext()) {
Match match = a.next();
if (match.getScore() < 0.95) break;
count++;
}
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.