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 2022-09-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]