Pet Face Info

Use Pet Face Info to get the coordinates of the selected pet face.
Input
Name | Data type | Description |
Detect | String | The pet face to pull information from. Pet faces will be numbered based on the order they enter the frame. |
Output
Name | Data type | Description |
Rect | Rect | A 2D rectangle that frames the selected pet face. |
Center Position | Vec2 | The center point of the selected pet face. |
Rotation | Vec3 | The rotation of the selected pet face. |
2D Keypoints | Array<Vec2> | An array of the facial keypoints |
Type | String | Will output “Cat” or “Dog” |



Example

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.
