How do I stop Object Detection on some monitors but not others

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
piflipper
Posts: 11
Joined: Wed Jan 08, 2020 1:13 pm

How do I stop Object Detection on some monitors but not others

Post by piflipper »

Hi,
I have Object detection and face recognition working fine, but would like to turn it off on some of my cameras but not others, still want motion detection though. I have separate [Monitor-xx] sections in the objectconfig file so face recognition only happens on the frontdoor cam. I have tried blank monitor sections but that doesn't seem to work.

Thanks
piflipper
Posts: 11
Joined: Wed Jan 08, 2020 1:13 pm

Re: How do I stop Object Detection on some monitors but not others

Post by piflipper »

After a bit of digging I found the answer, simple really, there's an entry in zmeventnotification.ini where you can tell the eventserver which monitors to skip.

# list of monitors which ES will ignore
# Note that there is an attribute later that does
# not process hooks for specific monitors. This one is different
# It can be used to completely skip ES processing for the
# monitors defined
skip_monitors = 3,4,5

Also discovered that I can reduce the alerts that get sent to my telegram channel, by editing zm_event_end.sh to skip sending if the faces detected are known e.g.

#Only send alert for unsavoury types

if [[ "$4" == *"Bill"* ]] || [[ "$4" == *"Ted"* ]]; then
exit 0
else
/usr/local/bin/telegram-send -g --image "${5}/objdetect.jpg" --caption "STRANGER DANGER"
fi
Post Reply