0

I want to process images got from Gallery with OpenCV and display them on screen using functions like org.opencv.android.Utils.bitmapToMat or org.opencv.imgproc.Imgproc.cvtColor. I initialised OpenCV library functions with OpenCVLoader.initDebug().

When I want to run the application, I get the following error message: "Unfortunately * has stopped".

Also I have the following log messages:

Trying to get library list
   Cannot load info library for OpenCV
   Library list: ""
   First attempt to load libs
   Trying to init OpenCV libs
   Trying to load library opencv_java
   Cannot load library "opencv_java"

Do you have any idea how to solve this error?

4

1 に答える 1

0

ライブラリを静的にロードしたい場合は、

if(!OpenCVLoader.initDebug()){
    Log.d("CVerror","OpenCV library Init failure");
}else{
    // load your library and do initializing stuffs like System.loadLibrary();
}

onCreate() メソッドの initDebug

于 2013-06-26T04:49:30.693 に答える