ZM face recognition

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
parsmanlin
Posts: 6
Joined: Tue Jul 11, 2023 4:39 am

ZM face recognition

Post by parsmanlin »

How can I set the face recognition so that only the events of the persons I specified in a known_face are recorded?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZM face recognition

Post by Magic919 »

You can’t.
-
parsmanlin
Posts: 6
Joined: Tue Jul 11, 2023 4:39 am

Re: ZM face recognition

Post by parsmanlin »

Magic919 wrote: Sun Jul 16, 2023 10:53 am You can’t.


Hello
I would like to know which camera is suitable for facial recognition in ZoneMinder. I am currently using the Dahua Camera IP 5MP, but it misidentifies many faces. Can you please provide guidance on selecting a suitable camera for facial recognition with ZoneMinder?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZM face recognition

Post by Magic919 »

Can imagine the camera having much influence if you have a good view/angle/lighting. Just have a general read on facial recognition, models and training.
-
piflipper
Posts: 11
Joined: Wed Jan 08, 2020 1:13 pm

Re: ZM face recognition

Post by piflipper »

Hi,

I do this via the /var/lib/zmeventnotification/bin/zm_event_end.sh script, the named person is passed to this via variable 4 ($4) (along with other text) so I run that through something like this:

some stuff

SUB="My name"

if [[ "$4" == *"$SUB"* ]] && [[ "$2" == "2" ]]; then
caption="Person Detected"
/usr/local/bin/telegram-send -g --image "${5}/objdetect.jpg" --caption "$caption"

fi



other stuff
$2 is the monitor id
$4 is the reason
$5 is the path to the event
piflipper
Posts: 11
Joined: Wed Jan 08, 2020 1:13 pm

Re: ZM face recognition

Post by piflipper »

Just another thought:

If you only want to record the known_faces events, have you looked at setting up a filter? Could be cumbersome for lots of people but ok for a few?
Post Reply