sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09405
Re: [Question #190829]: Looping through findAll occurences
Question #190829 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/190829
Status: Open => Answered
RaiMan proposed the following answer:
--- Pattern("LbsIcon.png").similar(0.30)
With this pattern you will get many stuff that you do not want.
If you are really only looking for all files with specific icon, than the match of these should be above 0.85 or even higher
--- Then it goes crazy
the findAll returns everything found with a decreasing similarity score. So you should stop in the loop at the moment, it goes beyond a threshold (see comment before).
BTW: to visit all files in directory can be accomplished much easier
with the built in features of Python modules os and os.path
One more thing: All above variants do exactly the same.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.