android.media
public
class
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
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
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.