@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / FaceGestureThresholds
Type Alias: FaceGestureThresholds ​
ts
type FaceGestureThresholds = {
mouthOpen: GestureThreshold;
smile: GestureThreshold;
eyeClosed: GestureThreshold;
blink: GestureThreshold;
browsRaised: GestureThreshold;
winkMargin: number;
winkHoldMs: number;
headTilt: GestureThreshold;
nodDegrees: number;
shakeDegrees: number;
};Defined in: face/gestures.ts:25
How easily gestures fire. Expression values are how far from this person's resting face, 0 to 1, so they mean the same on anyone.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
mouthOpen | GestureThreshold | Jaw open. 0.28 is a clear open mouth, and talking often stays under it. | face/gestures.ts:27 |
smile | GestureThreshold | The corners of the mouth, both averaged. 0.4 takes a closed-lip smile. | face/gestures.ts:29 |
eyeClosed | GestureThreshold | One eye closing. | face/gestures.ts:31 |
blink | GestureThreshold | Both eyes closing, averaged. Lower than one eye, because a blink is over in two or three frames and the tracker never sees it all the way down. | face/gestures.ts:36 |
browsRaised | GestureThreshold | Inner and outer brows, averaged. | face/gestures.ts:38 |
winkMargin | number | How much more closed the winking eye has to be than the other one. | face/gestures.ts:40 |
winkHoldMs | number | How long one eye stays shut before it's a wink, in ms. A blink is shorter. | face/gestures.ts:42 |
headTilt | GestureThreshold | Head tilt in degrees from how this person holds their head. | face/gestures.ts:44 |
nodDegrees | number | How far a nod has to go and come back, in degrees. | face/gestures.ts:46 |
shakeDegrees | number | How far a head shake swings from side to side, in degrees. | face/gestures.ts:48 |

