|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.media.FaceDetector
public class FaceDetector
Identifies the faces of people in a
Bitmap graphic object.
| Nested Class Summary | |
|---|---|
class |
FaceDetector.Face
A Face contains all the information identifying the location of a face in a bitmap. |
| Constructor Summary | |
|---|---|
FaceDetector(int width,
int height,
int maxFaces)
Creates a FaceDetector, configured with the size of the images to be analysed and the maximum number of faces that can be detected. |
|
| Method Summary | |
|---|---|
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
int |
findFaces(Bitmap bitmap,
FaceDetector.Face[] faces)
Finds all the faces found in a given Bitmap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FaceDetector(int width,
int height,
int maxFaces)
width - the width of the imageheight - the height of the imagemaxFaces - the maximum number of faces to identify| Method Detail |
|---|
public int findFaces(Bitmap bitmap,
FaceDetector.Face[] faces)
Bitmap.
The supplied array is populated with FaceDetector.Faces for each
face found. The bitmap must be in 565 format (for now).
bitmap - the Bitmap graphic to be analyzedfaces - an array in which to place all found
FaceDetector.Faces. The array must be sized equal
to the maxFaces value set at initialization
IllegalArgumentException - if the Bitmap dimensions don't match
the dimensions defined at initialization or the given array
is not sized equal to the maxFaces value defined
at initialization
protected void finalize()
throws Throwable
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class ObjectThrowable - The virtual machine ignores any exceptions which are
thrown during finalization.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||