camera - Face Detection in Android without user interaction -


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

following code capture photo camera after every 5 secs.

if (timer_started) {     multishottimer.cancel();     multishottimer.purge();     timer_started = false; } else {     multishottimer = new timer();     multishottimer.schedule(new timertask() {         @override         public void run() {             timer_started = true;             camera camera = surfaceview.getcamera();             camera.takepicture(null, null,                 new handlepicturestorage());         }     }, 1000, 5000l); } 

here, timer_started boolean indicate whether timer running or not.

following code handlepicturestorage

private class handlepicturestorage implements picturecallback {     @override     public void onpicturetaken(byte[] picture, final camera camera) {     //do when picture captured...     } } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -