← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674136]: Loop break by if exists ("path to image") not work :(

 

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

masuo proposed the following answer:
If exists() returns True, there seem to be images similar to "1537362590995.png" on the screen.
Since the minimum similarity is 70% in default, change the minimum similarity to a value greater than 70%.
https://sikulix-2014.readthedocs.io/en/latest/pattern.html?#Pattern.similar

[example]
exists(Pattern("1537362590995.png").similar(0.90))

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