← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #296096]: Combine regions in imagecounting.

 

Question #296096 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/296096

    Status: Open => Needs information

RaiMan requested more information:
Are you talking about restricting your findAll() to some smaller regions
instead of using the large region (106,1755,2608,45)?(which in fact is
not that large ;-)

... or do you have more than one of these regions?

What do you want to optimize?

A Region is something, that you always have to define before searching inside:
- absolute (like you did)
- relative to some match, that you have found before (some logo, title bar, ...)

conclusion: not really clear, what you want to achieve.

BTW:
- already using the latest version (much faster): http://sikulix.com
- this is sufficient:
imageCount = len(list(Region(106,1755,2608,45).findAll(Pattern("1464427130648.png").similar(0.92))))
... because findAll already returns an iterable object sufficient for list()
... inside() is somewhat redundant

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.