FaceNetLivenessSessionBase
Base class containing the shared liveness verification and sequential pose capture state machine for FaceNet.
Implements:
Sequential capture of the caller-requested poses in order (defaulting to
[FacePose.FRONT]).Passive liveness verification on FacePose.FRONT: evaluates
MiniFASNetV2anti-spoofing (livenessScore >= passiveLivenessThreshold) while the user looks straight at the camera.Directional head-pose guidance and capture for FacePose.LOOK_LEFT, FacePose.LOOK_RIGHT, FacePose.LOOK_UP, and FacePose.LOOK_DOWN.
High-resolution portrait photo capture for each pose across 2 consecutive valid frames.
Dynamic visual feedback via OverlayFrame and segmented ring.
Constructors
Properties
Functions
Captures a high-resolution upright portrait photo from frame.
Detects faces in frame.
Initializes platform-specific detector and interpreter pipelines.
Releases platform resources when session is closed or cancelled.