0

我想用 OpenCV 处理从图库中获取的图像,并使用类似 org.opencv.android.Utils.bitmapToMat 或 的函数将它们显示在屏幕上org.opencv.imgproc.Imgproc.cvtColor。我用 OpenCVLoader.initDebug().

当我想运行应用程序时,我收到以下错误消息:"Unfortunately * has stopped“。

我还有以下日志消息:

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"

你知道如何解决这个错误吗?

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 回答