Ask Your Question
1

OpenCV libs on Real Android Device

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

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 Android.mk that is hard-coded like

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

What i am missing?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

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

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

Question Tools

Stats

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

Seen: 648 times

Last updated: Sep 13 '12