(OpenCV4Android) How to use OpenCV camera in Service?

asked 2013-10-09 16:45:36 -0600

GongdoriCat gravatar image

updated 2013-10-10 01:06:22 -0600

Moster gravatar image

Hello, I'm currently developing an app which need to record video in background and process it.

(Control Android device using real-time image processing)

However, to achieve it, I need to use Camera and OpenCV as Service, and it seems that it is impossible to use JavaCamera and Android.Hardware.Camera without using any preview.

Here are my questions.

  1. I heard that NativeCamera can be used for this purpose. Is it possible? (Possibly with examples?)

  2. Is there any method that I can use JavaCameraView(or similar stuff) for this purpose? I currently use Galaxy S4.

Thank you for answering the question.

edit retag flag offensive close merge delete

Comments

check the sample , there is a way mentioned to use Native camera or the java Camera , any one of them?

bunta gravatar imagebunta ( 2013-10-10 00:18:04 -0600 )edit

The NativeCamera probably wont work on the S4, since samsung has changed something in their implementation on the camera. The NativeCamera class uses some undocumented camera api which can differ from device to device and thus fail sometimes.

Moster gravatar imageMoster ( 2013-10-10 01:05:07 -0600 )edit