Skip to main content

qualia_vision/biosense/liveness/
mod.rs

1//! Pure-landmark presentation attack detection (challenge-response).
2//!
3//! Geometric heuristics + temporal windows + **PAR (2D x-only)** flat-mask lock.
4//! Never trust model-inferred Z. No RGB texture PAD. Pair with stream attestation.
5
6pub mod action_threshold;
7pub mod camera_stream_integrity;
8pub mod challenge_kind;
9pub mod challenge_pad;
10pub mod landmark_jitter;
11pub mod landmark_types;
12pub mod non_rigid_z;
13pub mod profile_asymmetry_ratio;
14pub mod rigid_head_pose;
15pub mod temporal_window;
16
17pub use action_threshold::{
18    action_met_at_frame, mouth_open_ratio, ActionThresholds, DEFAULT_YAW_THRESHOLD_DEG,
19};
20pub use camera_stream_integrity::{
21    check_camera_stream_integrity, CameraStreamAttestation, CameraStreamSource,
22    StreamIntegrityVerdict,
23};
24pub use challenge_kind::ChallengeKind;
25pub use challenge_pad::{
26    evaluate_challenge_pad, evaluate_landmark_pad, issue_challenge, issue_rotation_challenge,
27    BlendRow, MeshFrameSignals, PadReason, PadResult, PadThresholds,
28};
29pub use landmark_jitter::{evaluate_landmark_jitter, mean_landmark_motion, JitterThresholds};
30pub use landmark_types::{Landmark2, LandmarkFrame, MeshBlendProxies, PadLandmarkId};
31pub use non_rigid_z::{evaluate_non_rigid_z, NonRigidVerdict};
32pub use profile_asymmetry_ratio::{
33    evaluate_profile_asymmetry, normalized_par_delta, profile_asymmetry_ratio, ParSample,
34    ParVerdict, DEFAULT_PAR_TAU, MIN_YAW_SPAN_DEG,
35};
36pub use rigid_head_pose::{estimate_head_pose, pose_delta, HeadPose};
37pub use temporal_window::{
38    check_temporal_window, TemporalGate, TemporalWindow, DEFAULT_TTC_MS, DEFAULT_TTS_MS,
39};