← Back to team overview

sikuli-driver team mailing list archive

[Question #190752]: Settings.MinSimilarity is not working with Java

 

New question #190752 on Sikuli:
https://answers.launchpad.net/sikuli/+question/190752

Hello,
I'm trying to use Settings.MinSimilarity in Java code but it looks like the default value (0.7) is still used.

Settings.MinSimilarity = 0.9;
Pattern myPattern= new Pattern("file.png");
System.out.println("myPattern : "+myPattern.toString());
Match myMatch= screen.exists(new Pattern("file.png"));
System.out.println("myMatch : "+myMatch .toString());

My log :

myPattern : Pattern("/path/to/my/file.png").similar(0.7)
myMatch : Match[1634,80 35x35 score=0,74 target=center]

Any idea why ?

Regards,
Yann

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