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

Pet Face Info

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


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


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”



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.