Monday, April 02, 2012
Real-time face detection with Android
In this post I will show you how to use the still image FaceDetector class from the Android SDK to achieve (mostly) real-time face detection. The following method was used in the creation of the MonkeyCam application.
Since its first release, the Android SDK has made available the FaceDetector class, which “identifies the faces of people in a Bitmap graphic object”. By using the FaceDetector on preview frames from the camera, we approximate the real-time face detection. For example in the MonkeyCam application we achieved a rate of slightly over one second per frame which is in the same range as other solutions found around the Internet using more complex solutions like third party computer vision libraries. Short of using the NDK to do GPU programming for the face detection algorithm this was a very usable compromise.
Read more »
Labels: Android, Face detection, FaceDetector, Mobile App, Mobile Application, Mobile Development, MonkeyCam, Smartphones