Getting Camera Events into ZM

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Quantum
Posts: 130
Joined: Fri Mar 25, 2011 3:34 pm

Getting Camera Events into ZM

Post by Quantum »

I have been unsuccessful at making any AI/ML work in ZM, so at this point am ready to resort to the camera raising alerts. They're older Dahua IPC-HDW5449TM-SE-LED with 2021 firmware (they error when I try to update), so they're pretty dumb.

I believe I need to use Onvif in ZM to get these events, but in the wiki it seems that you need a separate URL for each type of event, if I'm understanding.

Has anyone done this? Has anyone gotten any AI/ML working in ZM, and if so please do a public service and advise.
User avatar
burger
Posts: 457
Joined: Mon May 11, 2020 4:32 pm

Re: Getting Camera Events into ZM

Post by burger »

I installed ZMES on Debian 12 a few months ago and did not have any issues.
viewtopic.php?p=135779#p135779

It is possible that compatibility will break in the future, but it has been working so far.

ZMES uses YOLO to do image recognition. I.e. it will detect objects (person, car, truck). It can be programmed for custom image detection.
With ZMES I get less false positives. Alternatively, you could use hardware motion detectors, which are also very reliable. https://wiki.zoneminder.com/ZMTrigger I haven't tried the ONVIF detection yet, but it's likely it works. Axis has something similar with it's custom scripting: https://wiki.zoneminder.com/AxisMotionDetection from https://wiki.zoneminder.com/Axis I haven't used that though, as the firmware among cameras can differ which makes it non trivial if you have a mix of cameras (a reason to only use one model of camera).
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Quantum
Posts: 130
Joined: Fri Mar 25, 2011 3:34 pm

Re: Getting Camera Events into ZM

Post by Quantum »

Wow, ZMES seems to be working! I've set it to disregard my hi-def streams and only watch lo-def. But for each event in lo-def, the Cause is "Continuous". And the only thing happening is rain. (Seattle)

I don't understand this.

One hi-def monitor is getting triggered by its lo-def monitor on cars, but the clip always starts a little late after the car enters the frame. Is there a way to pre-start?

And I have no bounding boxes but I'll hold off on asking about that until I get a little further along with ZMES. It's just so nice to have such fewer events.
dougmccrary
Posts: 1370
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Getting Camera Events into ZM

Post by dougmccrary »

Dunno if they apply in this case, but you could play around with the Pre Event Image Count in the camera settings.
Quantum
Posts: 130
Joined: Fri Mar 25, 2011 3:34 pm

Re: Getting Camera Events into ZM

Post by Quantum »

It's not responding to camera alarms.

The lo cameras seem to be recording continuously even as they are set to Mocord. ES doesn't seem to be having any effect after all. Every Event has zero Alarm frames. I don't understand this. I did test ZMES before I activated it and no errors.
dougmccrary
Posts: 1370
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Getting Camera Events into ZM

Post by dougmccrary »

The lo cameras seem to be recording continuously even as they are set to Mocord.
That's what Mocord does. Modect records on detection...
Quantum
Posts: 130
Joined: Fri Mar 25, 2011 3:34 pm

Re: Getting Camera Events into ZM

Post by Quantum »

Ok, I see.

But, I have about a half-billion of these on monitor 7:
eb 28 06:47:49 reticulum zmc_m7[253757]: WAR [zmc_m7] [non increasing dts, fixing. our dts 14840832 stream 1 last_dts 14840960 difference 128 last_duration 1024. reorder_queue_size=0]
Post Reply