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

Pet Face Info

Use Pet Face Info to get the coordinates of the selected pet face.

Input

NameData typeDescription
DetectStringThe pet face to pull information from. Pet faces will be numbered based on the order they enter the frame.

Output

NameData typeDescription
RectRectA 2D rectangle that frames the selected pet face.
Center PositionVec2The center point of the selected pet face.
RotationVec3The rotation of the selected pet face.
2D KeypointsArray<Vec2>An array of the facial keypoints
TypeStringWill output “Cat” or “Dog”

Example

↓ pet_face_info.zip

In this example, the 2D coordinates for the cat’s left and right ear have been pulled from the Array output. As these coordinates are normalized, they’ve been multiplied by the Canvas resolution to convert them into screen space coordinates.