For face detection, you can use the built-in FaceDetector in the Android SDK, it returns facial positions and angles in BMP. But it is not very fast.
You can also use javaCV face detection, but before you start, I recommend that you see this article to see the benefits and shake of some API that you can use, as well as compare performance
For FaceDetector you can see these links
Here 's a real-time search using FaceDetector and OpenGL (draws rectangles) that works in Android 2.2
You can also use OpenCV in Android
Better try this on Linux (I tried this on Windows but couldn't).
Finally JavaCV (highly recommended)
There is an example of a real-time face detection code using a camera. See "Javacv-src - *. Zip" on the download page.
source share