How to detect face using android application?

Leave a Comment
This demo is used for detecting faces in a given image. Number of faces will be detected and a rectangle will be drawn around each face in the image. Two images are there, the first image contains only one face where as the second one contains multiple faces.
In our demo, MyFaceDetection class extending the view class, encloses all the code regarding face detection.

As shown in the code, a FaceDetector class is used. The purpose of FaceDetector class is to detect faces in a given bitmap. Along with this one more class is used i.e FaceDetector.Face class. This class contains all the information identifying the location of a face in a bitmap.




Download Complete Source Code


0 comments:

Post a Comment