Skip to main content

Module landmark_jitter

Module landmark_jitter 

Source
Expand description

Landmark noise-floor / micromotion analysis (passive liveness signal).

Human pulse and micro-tremors create natural jitter. A statically held 3D mask has near-zero structural jitter; video replays often show overly smooth interpolated trajectories. Track high-frequency residual over ~1 s.

Structs§

JitterThresholds

Enums§

JitterVerdict

Constants§

DEFAULT_JITTER_WINDOW_MS
Default analysis window (ms).
DEFAULT_MAX_JITTER
Upper bound — too high may indicate tracking noise / injection glitch.
DEFAULT_MIN_JITTER
Human-typical floor (normalized by interocular, per-frame residual RMS).
MIN_JITTER_SAMPLES
Minimum samples inside the window.

Functions§

evaluate_landmark_jitter
Evaluate jitter on nose + eye corners over the last window_ms ending at last frame.
mean_landmark_motion
Convenience: mean motion of packed points between two frames (legacy mesh_motion).