Region question

Asked by xyz_User on 2020-03-05

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2020-03-07
Last query:
2020-03-07
Last reply:
2020-03-06

This question was reopened

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

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.

xyz_User (userseven) said : #7

Thanks RaiMan, that solved my question.