FaceNetSessionBase
Base class containing the shared biometric verification state machine for FaceNet.
Implements:
Single-phase passive verification: confirms both biometric identity match (
similarity >= matchThreshold) and passive anti-spoofing liveness (livenessScore >= passiveLivenessThreshold) while the user looks directly at the camera, without requiring directional head-turn challenges.Latching prevention: requires 2 consecutive matching and live frames to prevent accidental triggers.
Head pose guidance: detects head pitch, yaw, and roll with contextual user guidance.
Timeout handling: 8-second match timeout, 25-second total session timeout.
Dynamic visual feedback via OverlayFrame: pulsing ring during positioning, green highlight upon verification.
Constructors
Properties
Functions
Detects faces in frame.
Initializes platform-specific detector and interpreter pipelines, and sets referenceEmbedding.
Releases platform resources when session is closed or cancelled.