Ask Your Question

Not able to get frames from android camera.

asked 2012-11-16 12:54:24 -0500

Hi, I was trying to run the example given in

I was able to build it and run the apk. But while running, I got the following error: 11-17 00:02:47.649 W/dalvikvm(17483): threadid=1: thread exiting with uncaught exception (group=0x40c391f8) 11-17 00:02:47.656 E/AndroidRuntime(17483): FATAL EXCEPTION: main 11-17 00:02:47.656 E/AndroidRuntime(17483): java.lang.UnsatisfiedLinkError: n_VideoCapture 11-17 00:02:47.656 E/AndroidRuntime(17483): at org.opencv.highgui.VideoCapture.n_VideoCapture(Native Method) 11-17 00:02:47.656 E/AndroidRuntime(17483): at org.opencv.highgui.VideoCapture.<init>(

I am using OpenCVLibrary 2.4.3. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-11-21 01:51:17 -0500

There are several possible problems: 1. You use OpenCV Manager incompatible with you hardware platform. 2. You tries to use some OpenCV objects, i.e. VideoCapture before OpenCV initialization. For example, you have class field initialized like this:

private VideoCapture mCamera = new VideoCapture(...);

In such situation VideoCapture object construction is called on your object construction. If OpenCV is not ready the line of code invokes exception.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-11-16 12:54:24 -0500

Seen: 841 times

Last updated: Nov 21 '12