I would like to use some Android 4 APIs in a non-Camera application.
The API includes some very nice Face Detection classes, including the Camera.Face class available since API 14. I would like to apply the same Face Detection classes in order to implement face detection on images saved on the device. I would prefer to use this to process pictures stored on the device itself (ex: social tagging, face image manipulation, etc.)
I require guidance on how to accomplish this re-use task.
The FaceDetectionListener is what you’d want to use to detect faces, but it only listens on the camera. That’s its only native function. If you really want use it on pictures on the user’s device, I’d suggest just downloading the source code for the camera API and adapting the method you want to your needs.
You can find the source for all stock android code here:
https://android.googlesource.com/
Good luck!