com.google.mlkit.vision.facemesh

  • Annotations like FaceMesh.ContourType and FaceMeshDetectorOptions.UseCase define face contours and detector options.

  • The FaceMeshDetector interface is used for finding face meshes in images and works best for selfie use cases.

  • Classes such as FaceMesh, FaceMeshDetection, and FaceMeshDetectorOptions represent the detected face mesh, provide the entry point for the detector, and define its options respectively.

  • FaceMeshPoint represents a 3D point within a face mesh using an index and a PointF3D.

Annotations

FaceMesh.ContourType Type of face contour. 
FaceMeshDetectorOptions.UseCase Defines options for main use case. 

Interfaces

FaceMeshDetector A FaceMeshDetection client for finding FaceMeshs in a supplied image, which works best in selfie use case where face is within ~2 meters, or ~6.5 feet from the camera. 

Classes

FaceMesh Represent face mesh detected by FaceMeshDetector
FaceMeshDetection Entry point to get a FaceMeshDetector for finding FaceMeshs in a supplied image. 
FaceMeshDetectorOptions Options for FaceMeshDetector
FaceMeshDetectorOptions.Builder Builder class of FaceMeshDetectorOptions
FaceMeshPoint Represents a 3D point in face mesh, by index and PointF3D