Class Overview
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.
|
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Constants
public
static
final
float
CONFIDENCE_THRESHOLD
The minimum confidence factor of good face recognition
Constant Value:
0.4
public
static
final
int
EULER_X
The x-axis Euler angle of a face.
Constant Value:
0
(0x00000000)
public
static
final
int
EULER_Y
The y-axis Euler angle of a face.
Constant Value:
1
(0x00000001)
public
static
final
int
EULER_Z
The z-axis Euler angle of a face.
Constant Value:
2
(0x00000002)
Public Methods
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.
public
float
eyesDistance
()
Returns the distance between the eyes.
public
void
getMidPoint
(PointF point)
Sets the position of the mid-point between the eyes.
Parameters
point
| the PointF coordinates (float values) of the
face's mid-point
|
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
| the Euler axis to retrieve an angle from
(EULER_X, EULER_Y or
EULER_Z) |
Returns
- the Euler angle of the of the face, for the given axis