FaceNetFaceMatcher
A face matcher implementation based on Google FaceNet and MobileFaceNet models.
Constructors
Properties
configuration parameters specifying input dimensions, normalization, and match threshold.
whether debug mode is enabled. When debug mode is active, the matcher is identified as "facenet_debug", displays biometric telemetry on the camera overlay, and enables a cheat mode where tapping or pressing the camera preview area automatically matches / completes verification (useful when testing with non-matching test credentials).
human-readable display name.
Whether native on-device face matching is supported on the current platform runtime.
the .tflite model data.
Functions
Extracts the detected, aligned face crop image that is matched against.
Computes the biometric FaceEmbedding for the detected face in portrait.
Computes the passive presentation attack detection (PAD) score (bona fide probability in [0.0, 1.0]) for the detected face in portrait using the embedded MiniFASNetV2 model.
Matches two portrait images and returns their cosine similarity.