Code example for FaceDetector

Methods: findFaces

0
	 
	} 
 
	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++) {
	        	if (faces[i] != null) {
	            	PointF midPoint = new PointF();
	            	 
	            	float eyeDistance = faces[i].eyesDistance();
	            	faces[i].getMidPoint(midPoint);
 
	           // 	Log.v(LOGTAG,"eyeDistance: " + eyeDistance);