Face Trigger - Model package¶
Contains classes for performing face-recognition.
Subpackages¶
Submodules¶
face_trigger.model.FaceRecognizer module¶
LBPH-based Face recognition module
-
class
face_trigger.model.FaceRecognizer.
FaceRecognizer
¶ Face recognition class ikmplementing the LBPH algorithm
-
evaluate
(predictions, ground_truths)¶
-
load
(name)¶
-
predict
(images)¶ Predicts the labels of the given images
Parameters: images (numpy.ndarray shape: (num_images, image_height, image_width)) – the images to test on Returns: the predicted labels Return type: array
-
save
(name)¶
-
train
(images, labels)¶ Train the recognizer on the training set
Parameters: - images (numpy.ndarray shape: (num_images, image_height, image_width)) – the images to train on
- labels (numpy.ndarray shape: (num_images,)) – the labels/subjects the corresponding faces belong to
-