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

Pet Face Detection

Detects if there are cats or dogs in the camera.

Input

NameData TypeDescription
DetectStringThe face to apply the effect to. Face 0 represents the first pet face appearing in the scene, Face 1 represents the second pet face appearing in the scene, and so on.

Output

NameData typeDescription
BeginExecExecute the next node when the pet face is detected
StayExecKeep executing the next node when the pet face stays in the scene
EndExecExecute the next node when the pet face disappeared
NoneExecKeep executing the next node when the certain pet face is not detected
Face CountNumberThe number of faces in the scene

Example

In this example, a plane tracked to a cat’s face will appear when a cat is detected. Using an Animation Sequence Controller, the text will display how many cats are on screen.