sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17143
Re: [Question #224927]: i need to make my script faster and smarter!!
Question #224927 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/224927
RaiMan proposed the following answer:
*** avoiding false positives
- use Pattern(image).similar(n) with n > 0.9 and optimized images (little background and concentration on the key aspects)
- restrict critical searches to the region, where you expect the image to appear. There are many functions that allow to create new regions based on existing ones, especially matches.
m = find(some_key_image)
search_region = m.below() # for example for the area below the some_key_image
or
m = find(some_key_image)
search_region = m.left(1).right(300).below(400)
a region
Region(m.x, m.y+m.h, 300, 400)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.