Ask Your Question
2

android ndk level access to camera video stream/pixels

asked 2013-02-02 10:01:21 -0500

narkis gravatar image

just joined the OpenCV - invaluable resource! simple noob question before I start developing using this SDK on Android

Is there NDK level access to live camera pixel stream , any color space, without sending it through JNI interface from java to native side. I am working on an NDK-level app and am determined to avoid JNI bottleneck for sending pixel buffers in real time.

thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-02 10:20:41 -0500

There is VideoCapture class in C++ interface. You can use it, if you implement Native Activity approach. NDK does not provide API for Camera access from native code, so VideoCapture uses undocumented interfaces, that makes VideoCapture not universal. It does not work on some old Motorolla devices with Android 2.2 and some fresh devices that was not updated from Android 4.0.x to 4.1.x. You can find list of known native camera issues on project issue tracker.

edit flag offensive delete link more

Comments

Thanks Alexander - I suspected that this may be the case. Will explore the VideoCapture in C++ class further and probably have to set up alternatives for this functionality until NDK itself gets more ubiquitous interfaces built. Again - thanks for a quick reply!

narkis gravatar imagenarkis ( 2013-02-02 10:25:53 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-02-02 10:01:21 -0500

Seen: 5,257 times

Last updated: Feb 02 '13