Ask Your Question
2

Access Mobile Camera From Native C++ vs Android

asked 2012-12-27 12:32:40 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Which is better to access camera from native C++ code using openCV capture or to access it using normal android preview methods (Like in Tutorial 4 in samples)?

According to speed of process? controlling capture like number of frames, focus and resolution ? re display the image in android surface?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2012-12-28 02:43:24 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Native OpenCV Camera (VideoCapture) and standard Android java camera uses the same low level base classes, so potentially have the same facilities in performance and camera control. But there is some differences.

  1. OpenCV VideoCapture operates with native OpenCV Mat objects, that can simplify processing and improve performance, against Java camera.

  2. There is some issues with native Camera on some TI based devices with old Android versions and some devices with Android 4.0.x. You cannot use native camera if application will be targeted for them.

  3. Not all camera options are implemented in VideoCapture class. Current implementation of camera controlling options is not tested on wide spectrum of devices, so you can get some issues with it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-27 12:32:40 -0600

Seen: 5,516 times

Last updated: Dec 28 '12