Ask Your Question
0

Native C++ code for android camera

asked 2013-04-13 01:38:12 -0600

Amith gravatar image

Hie, can someone help me with the code for initializing the camera on an android device through C++ OpenCV native code ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2013-04-13 10:58:28 -0600

There is Native Activity example in OpenCV4Android SDK since version 2.4.5. I recommend you to start from it.

edit flag offensive delete link more
0

answered 2013-04-13 05:03:28 -0600

Basically this topic show you the difference between the native C++ and the android Java interface:

http://answers.opencv.org/question/5524/access-mobile-camera-from-native-c-vs-android/

It means that for native C++ you need to use the VideoCapture class which enables you to read out camera frames based on there index number. Look at the examples given there.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-13 01:38:12 -0600

Seen: 2,315 times

Last updated: Apr 13 '13