Region question

Asked by xyz_User

Is there any way to search the region AROUND an object such as a square or a circle that's sitting in the center.
FOr eg if i were to use the observe fucntion and scanning for moving objects (pixel changes) BUT ignore anything moving within the center on the specified region?

Ive posted a pic below to hopefully assist with my question. Please advise, any help is greatly appreciated it!

https://i.ibb.co/MsLDqXj/region-Question.png

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Eric G (gamemaster181) said :
#1

I'm not qualified to give advice but can you split the hollow rectangle into 4 different regions?

Suppose you have:
Region_BigObject.find(capture(Region_Rectangle1))

This way you can capture the 4 regions by looking into the big region.

Or maybe you can define the 4 regions like:
listR = [region1, region2, region3, region4]
##code etc

Revision history for this message
Best RaiMan (raimund-hocke) said :
#2

... or you can simply ignore what happens in the middle

What you want is currently not a feature.

... but Erics idea could be the base for an implementation. I put it on the list.

Revision history for this message
xyz_User (userseven) said :
#7

Thanks RaiMan, that solved my question.