Facial Expression Detection
![facial expression detection](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/facial_expression_detection-c6ada700d87bb5f52bcacc220f20bfd3.png)
Use Facial Expression Detection to detect facial expression in the camera. Facial Expression Detection is in the Head & Face category.
Input
Name | Data Type | Description |
---|---|---|
Facial Expression | Built-in “Happy”, “Angry”, “Surprise”, “Disgust”, “Fear”, “Sad”, Neutral” expressions | Expression to detect including Happy, Angry, Surprise, Disgust, Fear, Sad and Neutral. |
Facial Index | Number (Int) | Which face to track. 0 represents the first detected face. |
Output
Name | Data Type | Description |
---|---|---|
Begin | Exec | Execute the next node when the facial expression starts. |
Stay | Exec | Keep executing the next node when the facial expression stays. |
End | Exec | Execute the next node when the facial expression ends. |
None | Exec Array | Keep executing the next node when the facial expression is not detected. |
Example
![facial expression detection example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/facial_expression_detection_example-48a8e18e7791465f6a9dcdd1eb01cc41.gif)
The 3D face mask color will change to red when it detects a happy expression. The 3D face mask will return to white, its original color, when the happy expression disappears.
![facial expression detection node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/facial_expression_detection_node-4deedbba67e9309890cbe77ea1bbcb89.png)