Ask Your Question

OpenCV libs on Real Android Device

asked 2012-09-11 05:54:45 -0500

Bia6969 gravatar image

I've followed the Face-detection sample method and i successfully programmed an object detection app, on emulator. Now, when i try to run it on real device, the moment i click on detection button, it crashes. Logcat says "OpenCv/StaticHelp >> First attempt to load libs failed". I've installed OpenCVManager on my device and even run some samples like puzzle or even face detection.

My question is: Could it be the OpenCV include on that is hard-coded like

include /home/xxx/Desktop/OpenCV-2.4.2-android-sdk/sdk/native/jni/

What i am missing?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-09-13 00:50:09 -0500

You use OpenCVLoader.initDebug() method for OpenCV initialization. This method is designed for loading OpenCV from application package WITHOUT OpenCV Manager. The message means, that OpenCV libraries are missing in your *.apk package. Usage of debug initialization is not recommended method for production apps. Use OpenCVLoader.initAsync() method for initialization using OpenCV manager. See tutorial and reference for more details.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-09-11 05:54:45 -0500

Seen: 269 times

Last updated: Sep 13 '12