Skip to main content
Version: 3.9.0

Facial Movement Detection

facial movement detection

Use Facial Movement Detection to detect facial movement. Facial Movement Detection is in the Head & Face category.

note

Each facial movement has four states: “begin”, “stay”, “end”, and “none”. For movement such as eye blink, even the fastest blink will still have one frame “stay” state.

Input

NameData TypeDescription
DetectStringFace select includes Face 0, Face 1, Face 2, Face 3, Face 4, Any; Track any face if choosing Any.
Facial MovementStringFacial movement including Eye Blink Left, Eye Blink Right, Eye Blink Both, Eye Blink Either, Mouth Open, Mouth Pout, and Eyebrow Wiggle.

Output

NameData TypeDescription
BeginExecExecute the next node when the facial movement starts.
StayExecKeep executing the next node when the facial movement stays. Even with movements such as blink, the fastest eye blink will still have one frame as “stay”.
EndExecExecute the next node when the facial movement ends.
NoneExec ArrayKeep executing the next node when the facial movement is not detected.

Example

facial movement detection example

This example uses the Facial Movement Detection node to show the alien hat when she opens her mouth and hides it when she closes her mouth. Check out Head Tracking and Animation Controller for adding the alien hat.

facial movement detection node