(OpenCV4Android) How to use OpenCV camera in Service?
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.
I heard that NativeCamera can be used for this purpose. Is it possible? (Possibly with examples?)
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.
check the sample , there is a way mentioned to use Native camera or the java Camera , any one of them?
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.