Stay organized with collections
Save and categorize content based on your preferences.
FaceDetector.Face
public
class
FaceDetector.Face
extends Object
A Face contains all the information identifying the location
of a face in a bitmap.
Summary
Constants |
float |
CONFIDENCE_THRESHOLD
The minimum confidence factor of good face recognition
|
int |
EULER_X
The x-axis Euler angle of a face.
|
int |
EULER_Y
The y-axis Euler angle of a face.
|
int |
EULER_Z
The z-axis Euler angle of a face.
|
Public methods |
float
|
confidence()
Returns a confidence factor between 0 and 1.
|
float
|
eyesDistance()
Returns the distance between the eyes.
|
void
|
getMidPoint(PointF point)
Sets the position of the mid-point between the eyes.
|
float
|
pose(int euler)
Returns the face's pose.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
CONFIDENCE_THRESHOLD
public static final float CONFIDENCE_THRESHOLD
The minimum confidence factor of good face recognition
Constant Value:
0.4
EULER_X
public static final int EULER_X
The x-axis Euler angle of a face.
Constant Value:
0
(0x00000000)
EULER_Y
public static final int EULER_Y
The y-axis Euler angle of a face.
Constant Value:
1
(0x00000001)
EULER_Z
public static final int EULER_Z
The z-axis Euler angle of a face.
Constant Value:
2
(0x00000002)
Public methods
confidence
public float confidence ()
Returns a confidence factor between 0 and 1. This indicates how
certain what has been found is actually a face. A confidence
factor above 0.3 is usually good enough.
eyesDistance
public float eyesDistance ()
Returns the distance between the eyes.
getMidPoint
public void getMidPoint (PointF point)
Sets the position of the mid-point between the eyes.
Parameters |
point |
PointF : the PointF coordinates (float values) of the
face's mid-point |
pose
public float pose (int euler)
Returns the face's pose. That is, the rotations around either
the X, Y or Z axis (the positions in 3-dimensional Euclidean space).
Parameters |
euler |
int : the Euler axis to retrieve an angle from
(EULER_X, EULER_Y or
EULER_Z) |
Returns |
float |
the Euler angle of the of the face, for the given axis |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 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"
}]
{"lastModified": "Last updated 2024-04-04 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-04-04 UTC."]]