Reuse single screenshot for many subregion checks

Asked by Eva Balycheva

Hello!

I tried to find a similar question but I haven't found relevant.

I'm using SikuliX API 1.1.1 on Java. Is there a way to make SikuliX check subregions of the big image that I provide manually?

This is my case:
I'm running my program on Windows 8.1 OS.
I have many regions on screen to check different things at the same time. And because of that many screen captures occurs.
These screen captures make dwm.exe (Desktop Windows Manager) consume even more CPU than my program.

I made some tests with capturing with "region,getScreen().capture()" and have noticed that at some point it's much more CPU-effective to capture the whole screen than many subregions of this screen.

That's why I want to capture whole screen image manually and ask SikuliX to find target images in subregions of this image. Is it possible?

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Eva Balycheva
Solved:
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

If it is allowed to find target images after capture whole screen, you can use Finder.
http://sikulix-2014.readthedocs.io/en/latest/finder.html?#finder

Revision history for this message
Eva Balycheva (ubershy) said :
#2

Thank you. I overlooked something obvious.