Skip to main content

Module non_rigid_z

Module non_rigid_z 

Source
Expand description

Non-rigid occlusion gate for 2D mask rejection.

Does not use model-inferred Z. MediaPipe depth is a statistical prior and will pass flat-screen attacks. The real lock is crate::biosense::liveness::profile_asymmetry_ratio() — Profile Asymmetry Ratio on raw image (x) of landmarks 1 / 234 / 454.

This module is a thin compatibility façade over PAR so existing call sites (evaluate_non_rigid_z, NonRigidVerdict) keep working.

Re-exports§

pub use super::profile_asymmetry_ratio::MIN_YAW_SPAN_DEG as MIN_Z_YAW_SPAN_DEG;

Enums§

NonRigidVerdict

Constants§

DEFAULT_MIN_NONRIGID_SCORE
Default τ for baseline-normalized ΔPAR (see PAR module).
REQUIRED_YAW_FOR_PAR
Re-export span constant for orchestrator docs.

Functions§

evaluate_non_rigid_z
Evaluate the flat-mask lock via PAR only (raw 2D (x)).