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

RaiMan posted a new comment:
@masuo:
Agreed - problem with SikuliX version 1: internally with the normal find the 
similarity score is truncated to 2 decimals.

Only if you use findAll(), then you can access the scores of the matches
with all its decimals.

So in this case this is worth a try:
Pattern image = new Pattern("C:\\Images\\TestImage.png").exact()
Iterator<Match> matches = this.screen.findAll(image)
match found = null;
if (matches.hasNext()) {
    match = matches.next()
}
if (null != match) {
    match.type("a")
} else {
  // should not happen ;-)
}

match should be the wanted image now.

This solution should work even in cases, where you do not have a chance
to check some pixel-RGB.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to