Ask Your Question
0

Camera capture in background

asked 2012-11-27 04:13:53 -0500

franute gravatar image

updated 2012-11-27 05:16:57 -0500

Hello everyone, I'm using openCV for face detection on Android in my application because Android's FaceDetection API [1] is not working on some devices.

For now, everything is working as expected (I have to tweak it a little to reduce false positives, but that's no problem), but I'd like to now if it could be possible to keep grabbing frames even when I lock the phone. I guess that with Android's camera capture it is not possible because, but what about openCV's VideoCapture?

Thank you all

[1] http://developer.android.com/reference/android/hardware/Camera.FaceDetectionListener.html

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-27 05:16:22 -0500

venky gravatar image

Hi, I donot know which android phone you are using but a recent advertisement for Galaxy S3, shows that you can run two applications side by side, which might be interest for you. I am guessing that it might be the OS that will not allow you to do something in the background. Hope the above helps in some way. Thanks Venky

edit flag offensive delete link more

Comments

Thank you for your answer venky. I think the feature you are referring to is also present on Galaxy Note 2, but I think it is more like a "multiple window" option. Anyway, right now I'm using a Galaxy S2 and a HTC One S.

I know that in Android the way to use background processing is through Services*, but I don't know if it is possible to create a Service with an associated VideoCapture that keeps working even though the phone is locked.

Thank you for your response, I'll keep trying things :P

franute gravatar imagefranute ( 2012-11-27 05:23:31 -0500 )edit

Thank franute for your comment. I am no expert for programming on Android devices, but would like to learn sometime (Currently interested in basic computer vision problems, and probably learning using large scale data). Thanks

venky gravatar imagevenky ( 2012-11-27 06:50:03 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2012-11-27 04:13:53 -0500

Seen: 1,436 times

Last updated: Nov 27 '12