FaceMeshPoint
Stay organized with collections
Save and categorize content based on your preferences.
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 |
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
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.
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."],[[["`FaceMeshPoint` represents a 3D point in a face mesh, identified by a unique index (0-467) and its 3D position."],["Each point's index signifies a fixed location on the face, enabling consistent tracking and analysis."],["The `PointF3D` associated with each point contains its 2D pixel coordinates (x, y) within the input image and its scaled depth (z) relative to the face mesh center."],["`FaceMeshPoint` provides methods to retrieve the index (`getIndex()`) and the 3D position (`getPosition()`) of a face mesh point."]]],["`FaceMeshPoint` represents a 3D point on a face mesh, identified by an index (0-467) and a `PointF3D` object. The `getIndex()` method retrieves this unique identifier. `getPosition()` returns the 3D coordinates; `x` and `y` are the pixel location in the input image, while `z` represents depth, scaled to the image size, with the origin at the mesh's center. Negative `z` values indicate points closer to the camera.\n"]]