ONVIF Events Other Than Plain Motion

Current Development version likely to have breaking changes
Post Reply
marklg
Posts: 22
Joined: Sun Dec 17, 2023 1:43 am

ONVIF Events Other Than Plain Motion

Post by marklg »

Can ONVIF events such as person or vehicle detection be used to trigger an alarm? Can Zoneminder distinguish between them? Anyone have examples?

Regards,

Mark
IgorA100
Posts: 75
Joined: Sat Feb 03, 2024 11:55 am

Re: ONVIF Events Other Than Plain Motion

Post by IgorA100 »

I tried using ONVIF detection and it works.
Naturally, my camera does not differentiate between detecting a person or a car, it simply sends a signal that there was movement and starts recording for this event.
I can’t say yet how well it all works, everything is in the testing stage.
Does your camera send different events when it detects a person or vehicle?
marklg
Posts: 22
Joined: Sun Dec 17, 2023 1:43 am

Re: ONVIF Events Other Than Plain Motion

Post by marklg »

I have multiple cameras. Some will trigger ONVIF events correctly, but I do not know if they distinguish between different detections. They certainly do with the in camera web interface. I do not know how to get that information from the ONVIF interface. That is what I am asking here, if any one has been able to distinguish between different detections and how.

Regards,

Mark
IgorA100
Posts: 75
Joined: Sat Feb 03, 2024 11:55 am

Re: ONVIF Events Other Than Plain Motion

Post by IgorA100 »

I haven't looked at ONVIF in depth.
You can try studying the document: https://www.onvif.org/specs/core/ONVIF- ... cation.pdf
Maybe there are answers to questions there.
ovargaspcr
Posts: 11
Joined: Thu Sep 17, 2020 9:17 pm

Re: ONVIF Events Other Than Plain Motion

Post by ovargaspcr »

ONVIF does provide a way to report different types of objects, according to https://www.onvif.org/specs/srv/analyti ... e-Spec.pdf, in section 5 Scene Description, but most ONVIF implementations for cameras are either partial or old versions. It also says: The scope of the Scene Description covers basic Scene Elements which can be displayed in a video overlay to the end-user as well as a framework for vendor-specific extensions..

A while ago it was added to zm an option for a specific type of implementation called Netsurveillance Web that connects to the that particular type of cameras and read alarms outputs looking for "HumanDetect" and then it fires a Zoneminder event, so instead of firing on any motion event it only fires if the camera reports the detection of a human. But it only works for that implementation, you can take a lot at the code here: https://github.com/ZoneMinder/zoneminde ... -server.py

I take it other vendors use the same approach.
Post Reply