← Back to team overview

sikuli-driver team mailing list archive

[Question #691666]: Find every match of multiple patterns

 

New question #691666 on Sikuli:
https://answers.launchpad.net/sikuli/+question/691666

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 question notification because your team Sikuli Drivers
is an answer contact for Sikuli.