sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09383
Re: [Question #190752]: Settings.MinSimilarity is not working with Java
Question #190752 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/190752
Status: Open => Answered
RaiMan proposed the following answer:
per definition: each Pattern object has its own min similarity value,
which is 0.7, if no similarity is given.
The Settings.minSmilarity only applies to plain images in
e.g. screen.find("image.png")
BTW: a Pattern is only needed, when either a special min similarity is
needed for this image other than the default value of 0.7 or a target
offset.
workaround:
Pattern p = new Pattern("image.png").similar(Settings.minSimilartity)
if you use this, these pattern objects will have what you want.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.