Page 1 of 1

ZM face recognition

Posted: Sun Jul 16, 2023 10:10 am
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?

Re: ZM face recognition

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

Re: ZM face recognition

Posted: Wed Jul 19, 2023 5:16 am
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?

Re: ZM face recognition

Posted: Thu Jul 20, 2023 6:29 am
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.

Re: ZM face recognition

Posted: Tue Aug 29, 2023 12:20 pm
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

Re: ZM face recognition

Posted: Tue Aug 29, 2023 12:29 pm
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?