Page 1 of 1

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

Posted: Sat Nov 25, 2023 12:01 pm
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

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

Posted: Sat Dec 02, 2023 1:03 pm
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