← Back to team overview

sikuli-driver team mailing list archive

[Bug 1887175] [NEW] [request] Find every match of multiple patterns (something like findAnyListAll())

 

Public bug reported:

ok, understood and accepted.

What you want is a findAnyListAll(), that returns a list of match lists,
where each match list has all matches as if a findAll() has been made
for the respective pattern.

I accept this as a feature request.

As a workaround you might dispatch a findAllList() for each pattern to
parallel threads.

--------------------------------------------------------------------------
Hi, I can find the best matches from list of patterns using:
matches = region.findAnyList(list_of_patterns)

I can also find all matches of a single pattern in region using:
matches = region.getAll(pattern)

How do I find all matches of each item in list_of_patterns in one go?
It's performance sensitive, I want to take single screen snippet and
perform the searches in parallel.

Do I have to somehow code this more low-level-ish using Finder class on
taken image from screen.capture(region)? This results in the image being
saved to disc and then read back, which isn't the fastest. Is that what
happens with region.find(pattern) internally too, does it go through
temp storage?

Thanks a ton!

** Affects: sikuli
     Importance: Undecided
         Status: New

** Description changed:

+ ok, understood and accepted.
+ 
+ What you want is a findAnyListAll(), that returns a list of match lists,
+ where each match list has all matches as if a findAll() has been made
+ for the respective pattern.
+ 
+ I accept this as a feature request.
+ 
+ As a workaround you might dispatch a findAllList() for each pattern to
+ parallel threads.
+ 
+ --------------------------------------------------------------------------
  Hi, I can find the best matches from list of patterns using:
  matches = region.findAnyList(list_of_patterns)
  
  I can also find all matches of a single pattern in region using:
  matches = region.getAll(pattern)
  
  How do I find all matches of each item in list_of_patterns in one go?
  It's performance sensitive, I want to take single screen snippet and
  perform the searches in parallel.
  
  Do I have to somehow code this more low-level-ish using Finder class on
  taken image from screen.capture(region)? This results in the image being
  saved to disc and then read back, which isn't the fastest. Is that what
  happens with region.find(pattern) internally too, does it go through
  temp storage?
  
  Thanks a ton!

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

Title:
  [request] Find every match of multiple patterns (something like
  findAnyListAll())

Status in Sikuli:
  New

Bug description:
  ok, understood and accepted.

  What you want is a findAnyListAll(), that returns a list of match
  lists, where each match list has all matches as if a findAll() has
  been made for the respective pattern.

  I accept this as a feature request.

  As a workaround you might dispatch a findAllList() for each pattern to
  parallel threads.

  --------------------------------------------------------------------------
  Hi, I can find the best matches from list of patterns using:
  matches = region.findAnyList(list_of_patterns)

  I can also find all matches of a single pattern in region using:
  matches = region.getAll(pattern)

  How do I find all matches of each item in list_of_patterns in one go?
  It's performance sensitive, I want to take single screen snippet and
  perform the searches in parallel.

  Do I have to somehow code this more low-level-ish using Finder class
  on taken image from screen.capture(region)? This results in the image
  being saved to disc and then read back, which isn't the fastest. Is
  that what happens with region.find(pattern) internally too, does it go
  through temp storage?

  Thanks a ton!

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


Follow ups