Skip to content

@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 ​

PropertyTypeDescriptionDefined in
mouthOpenGestureThresholdJaw open. 0.28 is a clear open mouth, and talking often stays under it.face/gestures.ts:27
smileGestureThresholdThe corners of the mouth, both averaged. 0.4 takes a closed-lip smile.face/gestures.ts:29
eyeClosedGestureThresholdOne eye closing.face/gestures.ts:31
blinkGestureThresholdBoth 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
browsRaisedGestureThresholdInner and outer brows, averaged.face/gestures.ts:38
winkMarginnumberHow much more closed the winking eye has to be than the other one.face/gestures.ts:40
winkHoldMsnumberHow long one eye stays shut before it's a wink, in ms. A blink is shorter.face/gestures.ts:42
headTiltGestureThresholdHead tilt in degrees from how this person holds their head.face/gestures.ts:44
nodDegreesnumberHow far a nod has to go and come back, in degrees.face/gestures.ts:46
shakeDegreesnumberHow far a head shake swings from side to side, in degrees.face/gestures.ts:48