Alex Rivera | Logout

Face Detection in Android without user interaction

Asked 2013-05-09T12:26:43.697
8

I want to detect the numbers of faces in the front camera frame. I can detect the face once I get the image using this :http://www.developer.com/ws/android/programming/face-detection-with-android-apis.html. But I don't know how to capture an image using the front camera every 30 seconds without an user interaction.Can someone please help me?

Edit
Report

1 Answer

-1

You should be scheduling an RTC_WAKEUP Alarm using the AlarmManager, at every 30 seconds, set a PendingIntent to the Alarm to launch a Service and inside the Service you should access the Camera to capture the image.

You should probably look at this post : Open/Run camera from a background Service.

answered 2013-05-09T13:00:03.980

Your Answer