i'm trying to run OpenCV
Tutorial 1 - Add OpenCV with static initialization using this
i don't want a separate OpenCV Manager application installed) but i get an "OpenCV error: Cannot load info library for OpenCV."
I did the following things:
added a libs folder with armeabi
, armeabi-v7a
, and x86
folders inside of it (from OpenCV-2.4.2-android-sdk/sdk/native/libs/)
added the static {if (!OpenCVLoader.initDebug())}
code just below private Sample1View mView;
removed the below code
if (!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_2, this, mOpenCVCallBack))
what seems to be the problem?
You should add the code:
mOpenCVCallBack.onManagerConnected(LoaderCallbackInterface.SUCCESS);
after:
if(!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_2, this, mOpenCVCallBack))
If you remove:
if(!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_2, this, mOpenCVCallBack))
code block then nobody calls.
Hope it can help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With