backend.components.camera_verification.faceid

FaceID

Performs face scan verification, works by using the face_recognition module which uses a model that detects faces on images and produces their embeddings. The embeddings can then be easily compared to assess whether two faces match.

Directory Structure

faceidService.py

  • Contains the core logic for face recognition.
  • Extracts facial features from images using pre-trained models.
  • Compares extracted features with stored embeddings to determine identity matches.
  • Provides utility functions for face detection, feature extraction, and similarity scoring.
 1'''
 2# FaceID
 3Performs face scan verification, works by using the `face_recognition` module which uses a model that detects faces on images and produces their embeddings. The embeddings can then be easily compared to assess whether two faces match.
 4
 5## Directory Structure
 6
 7#### `faceidService.py`
 8- Contains the core logic for face recognition.
 9- Extracts facial features from images using pre-trained models.
10- Compares extracted features with stored embeddings to determine identity matches.
11- Provides utility functions for face detection, feature extraction, and similarity scoring.
12
13'''