Code example for FaceDetector

Methods: findFaces

0
		public void run() { 
			Looper.prepare();
			mHandler = new Handler() {
				public void handleMessage(Message msg) {
					arrayFaces = new FaceDetector(imgWidth, imgHeight,
							NUM_FACES);
					arrayFaces.findFaces(img, allFaces);
					face = allFaces[0];
					if (face != null) {
						PointF po = new PointF();
						face.getMidPoint(po);
						bundle.clear();
						bundle.putFloat("centerx", po.x);
						bundle.putFloat("centery", po.y);
						bundle.putFloat("radius", face.eyesDistance());
						//msg.setData(bundle); 
					} 
					Log.i("Duck", "find a face with: " + face + " in "
							+ System.currentTimeMillis());
					queue.sendEmptyMessage(DISPLAY_FACE_DATA);
Contextual code suggestions in your IDE  Get Codota for Java