Face Info
Use Face Info to get coordinates of selected human faces and identify which human is on the screen.
Input
Name | Data Type | Description |
---|---|---|
Detect | String | The face to pull information from. 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 face. |
Center Position | Vec2 | The center point of the selected face. |
Rotation | Vec3 | The rotation of the selected face. |
2D Keypoints | Vec2 Array | An array of 106 facial keypoints. |
Example
In this example, the 2D coordinates for the left and right eye have been pulled from the Array output. As these coordinates are normalized, they are multiplied by the Canvas resolution to convert them into screen space coordinates.