English | Site Directory

Android - An Open Handset Alliance Project

android.media
public class

android.media.FaceDetector

java.lang.Object
android.media.FaceDetector
Nested Classes
FaceDetector.Face a Face contains all the information identifying the location of a face in a bitmap. 

Summary

Public Constructors

          FaceDetector(int width, int height, int maxFaces)
FaceDetector() must be configured with the size of the images to be analysed and the maximum number of faces that can be detected.

Public Methods

        int  findFaces(Bitmap bitmap, Face[] faces)
findFaces() analyse the given bitmap and returns the number of faces found.

Protected Methods

        void  finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
Methods inherited from class java.lang.Object

Details

Public Constructors

public FaceDetector(int width, int height, int maxFaces)

FaceDetector() must be configured with the size of the images to be analysed and the maximum number of faces that can be detected. These parameters cannot be changed once the object is constructed.

Public Methods

public int findFaces(Bitmap bitmap, Face[] faces)

findFaces() analyse the given bitmap and returns the number of faces found. The supplied Face array is updated with informations about the found faces. The bitmap must be in 565 format (for now).

Protected Methods

protected void finalize()

Called by the virtual machine when there are no longer any (non-weak) references to the receiver. Subclasses can use this facility to guarantee that any associated resources are cleaned up before the receiver is garbage collected. Uncaught exceptions which are thrown during the running of the method cause it to terminate immediately, but are otherwise ignored.

Note: The virtual machine assumes that the implementation in class Object is empty.

Throws

Throwable
Build m5-rc15g - 14 May 2008 12:50