Closed ubershy closed 7 years ago
Thanks for the info. I will check.
I have fixed it. Thanks again for finding. New nightly available in about 2 hours.
Wow, so fast! Thank you. =)
@ubershy Was obvious and easy to fix. The rest is semi-automatic workflow ;-) all the best
If I'm not mistaken, the problem exists since the old sikulixapi 1.1.0 to the current sikulixapi 1.1.1-SNAPSHOT.
What happens:
When using sikulixapi as library in Java project, after the first successful find with Region.exists() using low similarity parameter, knowing that it will fail with high similarity, all subsequent tries to find with higher similarity in the same conditions will be successful (false positive).
How to easily reproduce:
Possible culpit:
This line which incorrectly defines "score" variable, which is Similarity parameter. The "score" variable is later used in these places: Place 1 Place 2
Possible solution (I'm not sure):
Replace this line:
float score = (float) (img.getLastSeenScore() - 0.01);
To this line:float score = (float) (ptn.getSimilar() - 0.01);
Note: this report is not a duplicate of issue #190
By the way, thank you, @RaiMan , for maintaining SikuliX. =)