To make this even more flexible, the Pattern class should have more
attributes:

- defaults:
count = 1
waittime = standard-waiting-time

- count
... defines how many images should be searched in one run
setting count = 0 would return as many matches as possible within the given 
wait time

- waittime
... a specific waittime for this pattern, that should be used with find() 
(overwritten when using wait()) 

usage:
p = Pattern("some-image.png").setCount(5).setWait(10)
matches = find(p) # returns a list of matches like findAll()

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/778925

Title:
  [request] find/findAll to accept list of patterns

Status in Sikuli:
  In Progress

Bug description:
  I wonder if it is possible to create effective algorithm to search for
  multiple patterns during single scan. I know this is possible for sure
  if similarity is 1.0. Anyway, it would be nice to have this ability
  for findAll function, where you need to find a lot of different images
  in one pass. Using `for image in list_of_patterns: stack +=
  findAll(image)` is very slow.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/778925/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to