Skip to main content
TikTok Effect House Platform Logo
Latest
Download
Log in
Head and Face

Facial Movement Detection

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

Note
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, Eyebrow Wiggle

Output

NameData typeDescription
BeginExecExecute the next node when the facial movement begins
StayExecKeep executing the next node when the facial movement stays, note that 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
NoneExecKeep executing the next node when the facial movement is not detected

Example

In this example, we use the Facial Movement Detection node to show the alien hat when she opens her mouth and hide it when she closes her mouth. Check out Head Tracking and Animation Controller for adding the alien hat.