Limit object detection to part of the scene?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
random_string
Posts: 12
Joined: Mon Dec 19, 2022 7:01 pm

Limit object detection to part of the scene?

Post by random_string »

Is there a way to limit object detection to only part of the scene? Right now, every movement triggers a car alert because a car is parked across the street. I only want to know if the object is detected in my yard. I don't want to limit object detection only to the zones.
random_string
Posts: 12
Joined: Mon Dec 19, 2022 7:01 pm

Re: Limit object detection to part of the scene?

Post by random_string »

I created a privacy zone to exclude the section I don't want to be processed for object detection. The trouble is, I still want to be able to see that area when I'm viewing the camera live. Is the privacy zone the only option? I created a clone of the camera in question and set it to the monitor function. Is there any way to do this without the privacy zone?
User avatar
iconnor
Posts: 3327
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Limit object detection to part of the scene?

Post by iconnor »

I think this is all possible.. you are going to have dig into the event server docs...... event server has a whole zone thing on top of what zm does.
read the objecect.ini comments
random_string
Posts: 12
Joined: Mon Dec 19, 2022 7:01 pm

Re: Limit object detection to part of the scene?

Post by random_string »

I'll do that. Thank you. I'm still learning all this. I've been running ZM for 3 years, and only now am I learning how to use the event server.
random_string
Posts: 12
Joined: Mon Dec 19, 2022 7:01 pm

Re: Limit object detection to part of the scene?

Post by random_string »

Ok. This is what I came up with:

The privacy zone stopped object detection completely. Not entirely sure why. It started working again when I removed the privacy zone. What did work is editing the objectconfig.ini file, and adding the following above the monitor-999 example:

Code: Select all

[monitor-1]
driveway=0,0 1919,0 1919,1079 0,1079
That's just an example, as the polygon I created was fairly complicated and I'm too lazy to type it all in. I used the zone points in zoneminder to enter the x,y items separated by a space. The name, which I called driveway, can be anything except the parameter names in the file.

I edited the objectconfig.ini file in nano, then saved it and restarted zmeventnotification.service. When I walked in front of the camera, it detected me, but did not detect the car on the street, which was outside the detection zone I specified.

I'm just curious if there's a way to simply reference the monitor zone, rather than typing in the points of the polygon. It's not a huge issue, just curious.

I'm hoping this does the trick. Since starting with ZM, I've been plagued with events caused by the shadow of a tree moving, or a cloud moving swiftly overhead. I'm hoping this will fix it.

Next: setup zmninja.
Post Reply