songyy
songyy

Reputation: 4573

Why on Android, OpenCV camera is faster than the Android Camera when capturing video

In a project on Android, I'm trying to capture the video and process it in realtime (like a Kinect). I tried with two method: using OpenCV keep calling mCamera.grab() and capture.retrieve(mRgba,Highgui.CV_CAP_ANDROID_COLOR_FRAME_RGBA); or the Android's Camera by keep capturing image.

I feel that the OpenCV camera's ability to capture image faster than the Android one. But why?

Upvotes: 4

Views: 1637

Answers (1)

Andrey Kamaev
Andrey Kamaev

Reputation: 30142

OpenCV uses a hack to get low level access to the Android camera. It allows to avoid several data copyings and transitions between native and managed layers.

Upvotes: 5

Related Questions