Code example for FaceDetector

0
	Bitmap bmp;
	int numFaces = 0;
 
	public GoogleFaceDetection(Bitmap _bmp) {
		setBitmap(_bmp);
		faceDetector = new FaceDetector(bmp.getWidth(), bmp.getHeight(), MAX_FACES);
	 
	} 
 
	public int findFaces() { 
		 
		numFaces = faceDetector.findFaces(bmp, faces);
		return numFaces;
	} 
 
	public RectF[] getFaces() {
		RectF[] faceRects = new RectF[numFaces];
		 
	    if (numFaces > 0) {
	        for (int i = 0; i < faces.length; i++) {
Connect your IDE to all the code out there  Get Codota for Java