Skip to main content

Module action_threshold

Module action_threshold 

Source
Expand description

Map challenges to geometric / expression thresholds.

Head turns use rigid yaw (degrees). Expressions use Euclidean landmark ratios normalized by interocular distance so camera distance cancels.

Structs§

ActionThresholds

Constants§

DEFAULT_BLINK_PEAK
Blink blendshape peak.
DEFAULT_MOUTH_OPEN_RATIO
Mouth open / smile mouth height ratio (mouth gap / interocular).
DEFAULT_SMILE_BLEND
Smile blendshape proxy peak when blendshapes available.
DEFAULT_YAW_THRESHOLD_DEG
Default yaw gate for “look left/right” challenges (degrees).

Functions§

action_met_at_frame
Whether the action criterion is met for this frame’s pose + optional proxies.
action_onset_at_frame
Onset: motion in the challenge direction exceeds a fraction of the threshold.
mouth_open_ratio
Mouth aperture normalized by interocular (None if landmarks missing).