FaceMeshPoint

public class FaceMeshPoint extends Object

Represents a 3D point in face mesh, by index and PointF3D.

The index is an unique ID meaning a fixed position on face, ranging from 0 to 467.

In PointF3D , x and y are pixel location of detected face in InputImage. z is also scaled to image size, while the origin will be somewhere in the center of all 468 face mesh points.

Public Method Summary

int
getIndex()
Gets the index of the face mesh point, ranging from 0 to 467.
PointF3D
getPosition()
Gets a 3D point in face mesh.

Inherited Method Summary

Public Methods

public int getIndex ()

Gets the index of the face mesh point, ranging from 0 to 467.

For each specific point, the index is a constant value.

public PointF3D getPosition ()

Gets a 3D point in face mesh. Inside PointF3D, X and Y means a 2D position in original image.

More information on the Z value:

  • The unit of measure for the Z value is the same as X and Y.
  • The smaller the Z value, the closer that landmark is to the camera.
  • The Z origin is approximately at the center of all 468 face mesh points. Z value will be negative if the point is close to camera and will be positive if the point is away from the camera.