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

Facial expression detection

Use Facial Expression Detection to detect facial expression in the camera. Facial Expression Detection is in the Head & Face category.

Input

NameData typeDescription
Facial ExpressionBuilt-in “Happy”, “Angry”, “Surprise”, “Disgust”, “Fear”, “Sad”, Neutral” expressions.Expression to detect including Happy, Angry, Surprise, Disgust, Fear, Sad and Neutral
Face IndexNumber (Int)Which face to track, 0 represents the first detected face

Output

NameData typeDescription
BeginTriggerExecute the next node when the expression begins
StayTriggerKeep executing the next node when the expression stays
EndTriggerExecute the next node when the expression ends
NoneTriggerKeep executing the next node when the expression is not detected

Example

The 3D face mask color will change to red when it detects the happy expression. The 3D face mask will return to white, its original color, when the happy expression disappears.