Face recognition config question
Posted: Fri Jun 11, 2021 8:40 pm
I'm please to report that by and large my ZMes installation is working well - it can event detect our little dog running round the garden !
Just for academic interest I thought I'd turn on facial recognition. I did the face training which seemed to work ok using CNN see below, but I am a little confused as to what I should have in the objectconfig.ini here's what I have for my test monitor. I'll dig into the logs tomorrow but suspect its a config error as everything else seems ok.
Wonder what I'm missing ?
Regards Tim
objectconfig.ini snipprt:
[monitor-2]
# Gates
match_past_detections=no
wait=5
object_detection_pattern=(person|car|dog|truck)
import_zm_zones=yes
gates_zone_detection_pattern=(person|car|dog|truck)
resize=no
detection_sequence=object,face
#####################################
Output when training:
INF [zm_train_faces] [Ignoring monitor specific settings, as you did not provide a monitor id]
DBG3 [zm_train_faces] [Finally, doing parameter substitution]
DBG1 [zm_train_faces] [jan is a directory. Processing all images inside it]
DBG1 [zm_train_faces] [loading face from jan/jan2.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from jan/jan.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from jan/jan4.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from jan/jan3.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [tim is a directory. Processing all images inside it]
DBG1 [zm_train_faces] [loading face from tim/tim3.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from tim/tim2.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from tim/tim.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG2 [zm_train_faces] [Using algo:ball_tree n_neighbors to be: 3]
DBG1 [zm_train_faces] [Training model ...]
DBG1 [zm_train_faces] [wrote encoding file: /var/lib/zmeventnotification/known_faces/faces.dat]
DBG1 [zm_train_faces] [perf: Face Recognition training took: 28013.77 ms]
Just for academic interest I thought I'd turn on facial recognition. I did the face training which seemed to work ok using CNN see below, but I am a little confused as to what I should have in the objectconfig.ini here's what I have for my test monitor. I'll dig into the logs tomorrow but suspect its a config error as everything else seems ok.
Wonder what I'm missing ?
Regards Tim
objectconfig.ini snipprt:
[monitor-2]
# Gates
match_past_detections=no
wait=5
object_detection_pattern=(person|car|dog|truck)
import_zm_zones=yes
gates_zone_detection_pattern=(person|car|dog|truck)
resize=no
detection_sequence=object,face
#####################################
Output when training:
INF [zm_train_faces] [Ignoring monitor specific settings, as you did not provide a monitor id]
DBG3 [zm_train_faces] [Finally, doing parameter substitution]
DBG1 [zm_train_faces] [jan is a directory. Processing all images inside it]
DBG1 [zm_train_faces] [loading face from jan/jan2.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from jan/jan.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from jan/jan4.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from jan/jan3.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [tim is a directory. Processing all images inside it]
DBG1 [zm_train_faces] [loading face from tim/tim3.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from tim/tim2.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG1 [zm_train_faces] [loading face from tim/tim.jpg]
DBG1 [zm_train_faces] [resizing to 800]
DBG2 [zm_train_faces] [Using algo:ball_tree n_neighbors to be: 3]
DBG1 [zm_train_faces] [Training model ...]
DBG1 [zm_train_faces] [wrote encoding file: /var/lib/zmeventnotification/known_faces/faces.dat]
DBG1 [zm_train_faces] [perf: Face Recognition training took: 28013.77 ms]