Object detection for older events?

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
znmdruser92102
Posts: 3
Joined: Fri May 23, 2025 5:07 am

Object detection for older events?

Post by znmdruser92102 »

I setup event server with opencv. Event server updates the notes with object detection (person, car, face, etc....) for new events since the setup.

Is there a way to update the notes for all the older events using event server object detection? This way I can delete old false negative events, but keep events that have people in it so I can clear up hard drive space. Thanks.
User avatar
iconnor
Posts: 3351
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Object detection for older events?

Post by iconnor »

You can run detect.py --eventid 1234 from a filter....
znmdruser92102
Posts: 3
Joined: Fri May 23, 2025 5:07 am

Re: Object detection for older events?

Post by znmdruser92102 »

I'm not a dev and I'm struggling with this.

I took your suggestion and I'm trying to use event filter execute a command on all matches

I tried using

python3 zm_detect.py

but couldn't get that to work. I tried running python3 zm_detect.py on the command line, but got errors about permissions. I think I have to run it as www-data?

Now I'm trying to use zm_event_start.sh. I've used that on the command line with success. I just needed to add --notes TRUE so that it would update the cause description to add person detection.

I'm using %EI% to get the event id, but then it keeps appending the path of the event to the command and that messes things up.

I've been googling, searching for hours, please help.
Post Reply