← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252896]: how to use Sikuli in Java

 

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

RaiMan proposed the following answer:
Grrrr, the auto-correct has worked ;-)

String img = "some-image.png"; // the shot
Pattern pImg = new Pattern(img).similar(0.95f);

or
Pattern pImg = new Pattern(img).exact();

to request "exact" matching (wanted score >0.99)

and then you can use pImg instead of img in the respective methods like
find, click, exists, ...

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.