Skip to main content

Module liveness

Module liveness 

Source
Expand description

Pure-landmark presentation attack detection (challenge-response).

Geometric heuristics + temporal windows + PAR (2D x-only) flat-mask lock. Never trust model-inferred Z. No RGB texture PAD. Pair with stream attestation.

Re-exports§

pub use action_threshold::action_met_at_frame;
pub use action_threshold::mouth_open_ratio;
pub use action_threshold::ActionThresholds;
pub use action_threshold::DEFAULT_YAW_THRESHOLD_DEG;
pub use camera_stream_integrity::check_camera_stream_integrity;
pub use camera_stream_integrity::CameraStreamAttestation;
pub use camera_stream_integrity::CameraStreamSource;
pub use camera_stream_integrity::StreamIntegrityVerdict;
pub use challenge_kind::ChallengeKind;
pub use challenge_pad::evaluate_challenge_pad;
pub use challenge_pad::evaluate_landmark_pad;
pub use challenge_pad::issue_challenge;
pub use challenge_pad::issue_rotation_challenge;
pub use challenge_pad::BlendRow;
pub use challenge_pad::MeshFrameSignals;
pub use challenge_pad::PadReason;
pub use challenge_pad::PadResult;
pub use challenge_pad::PadThresholds;
pub use landmark_jitter::evaluate_landmark_jitter;
pub use landmark_jitter::mean_landmark_motion;
pub use landmark_jitter::JitterThresholds;
pub use landmark_types::Landmark2;
pub use landmark_types::LandmarkFrame;
pub use landmark_types::MeshBlendProxies;
pub use landmark_types::PadLandmarkId;
pub use non_rigid_z::evaluate_non_rigid_z;
pub use non_rigid_z::NonRigidVerdict;
pub use profile_asymmetry_ratio::evaluate_profile_asymmetry;
pub use profile_asymmetry_ratio::normalized_par_delta;
pub use profile_asymmetry_ratio::profile_asymmetry_ratio;
pub use profile_asymmetry_ratio::ParSample;
pub use profile_asymmetry_ratio::ParVerdict;
pub use profile_asymmetry_ratio::DEFAULT_PAR_TAU;
pub use profile_asymmetry_ratio::MIN_YAW_SPAN_DEG;
pub use rigid_head_pose::estimate_head_pose;
pub use rigid_head_pose::pose_delta;
pub use rigid_head_pose::HeadPose;
pub use temporal_window::check_temporal_window;
pub use temporal_window::TemporalGate;
pub use temporal_window::TemporalWindow;
pub use temporal_window::DEFAULT_TTC_MS;
pub use temporal_window::DEFAULT_TTS_MS;

Modules§

action_threshold
Map challenges to geometric / expression thresholds.
camera_stream_integrity
OS-level camera stream integrity (virtual-camera injection defense).
challenge_kind
Closed set of liveness challenges (challenge-only PAD).
challenge_pad
Active pure-landmark challenge-response PAD orchestrator.
landmark_jitter
Landmark noise-floor / micromotion analysis (passive liveness signal).
landmark_types
Compact MediaPipe-compatible landmark subset for pure-geometry PAD.
non_rigid_z
Non-rigid occlusion gate for 2D mask rejection.
profile_asymmetry_ratio
Profile Asymmetry Ratio (PAR) — geometric lock against 2D rigid planes.
rigid_head_pose
Rigid head pose from a stable landmark subset (PnP-class geometry).
temporal_window
Strict millisecond challenge windows (TTS / TTC).