Interface FaceData

Information about the face being tracked. FaceData object is constructed and passed in the onFaceTracked callback.

Hierarchy

  • FaceData

Properties

detected: boolean

True if the face is detected, false otherwise.

translation: number[]

Array of 3 floats containing (x, y, z) position (translation) of the face in 3D space.

rotation: number[]

Array of 3 floats containing (x, y, z) rotation of the face in 3D space.

poseMatrix: number[]

Array of 16 floats containing 4x4 matrix representing translation and rotation of the face in 3D space.

landmarks: number[]

Array of 63*3 floats containing (x, y, z) positions of the 3D face landmarks. Read more here.

landmarks2d: number[]

Array of 63*2 floats containing (x, y) positions of the 2D face landmarks in screen space. Usually more precise than 3D points but no estimation for z translation. Read more here about feature points. Read more here.

faceRect: number[]

Array of 4 floats. Rectangle (x, y, width, height) containing the face in screen coordinates.

Generated using TypeDoc