com.google.mlkit.vision.facemesh
Stay organized with collections
Save and categorize content based on your preferences.
Annotations
Interfaces
A FaceMeshDetection
client for finding FaceMesh
s
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe FaceMesh API detects face meshes, providing 3D points for facial features, ideal for selfie use cases within ~2 meters.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize classes like \u003ccode\u003eFaceMeshDetector\u003c/code\u003e, \u003ccode\u003eFaceMesh\u003c/code\u003e, and \u003ccode\u003eFaceMeshPoint\u003c/code\u003e to access and manipulate face mesh data.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFaceMeshDetectorOptions\u003c/code\u003e allow customization of the detection process, including specifying the main use case.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFaceMesh.ContourType\u003c/code\u003e and \u003ccode\u003eFaceMeshDetectorOptions.UseCase\u003c/code\u003e offer enums for defining contour types and use cases, respectively.\u003c/p\u003e\n"]]],["The content details the functionality of FaceMesh detection within an Android context. Key components include: defining face contour types and main use case options. The FaceMeshDetector interface is used to identify FaceMesh objects in images, working optimally when the face is within ~2 meters of the camera. FaceMesh, FaceMeshDetection, and FaceMeshDetectorOptions are core classes, where FaceMesh represents the detected mesh, FaceMeshDetection retrieves the detector, and FaceMeshDetectorOptions are for detector customization. A FaceMeshPoint represents a 3D point on the mesh.\n"],null,["# com.google.mlkit.vision.facemesh\n\n### Annotations\n\n|------------------------------------------------------------------------------------------------------------------------|------------------------------------|\n| [FaceMesh.ContourType](/android/reference/com/google/mlkit/vision/facemesh/FaceMesh.ContourType) | Type of face contour. |\n| [FaceMeshDetectorOptions.UseCase](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.UseCase) | Defines options for main use case. |\n\n### Interfaces\n\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FaceMeshDetector](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetector) | A [FaceMeshDetection](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetection) client for finding [FaceMesh](/android/reference/com/google/mlkit/vision/facemesh/FaceMesh)s in a supplied image, which works best in selfie use case where face is within \\~2 meters, or \\~6.5 feet from the camera. |\n\n### Classes\n\n|------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FaceMesh](/android/reference/com/google/mlkit/vision/facemesh/FaceMesh) | Represent face mesh detected by [FaceMeshDetector](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetector). |\n| [FaceMeshDetection](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetection) | Entry point to get a [FaceMeshDetector](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetector) for finding [FaceMesh](/android/reference/com/google/mlkit/vision/facemesh/FaceMesh)s in a supplied image. |\n| [FaceMeshDetectorOptions](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions) | Options for [FaceMeshDetector](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetector). |\n| [FaceMeshDetectorOptions.Builder](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.Builder) | Builder class of [FaceMeshDetectorOptions](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions). |\n| [FaceMeshPoint](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshPoint) | Represents a 3D point in face mesh, by index and [PointF3D](/android/reference/com/google/mlkit/vision/common/PointF3D). |"]]