7

我正在为android使用opencv。我试图用静态初始化来初始化 opencv。我从这里跟着文件

现在我遇到了问题。

01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): Trying to get library list
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): loadLibrary opencvinfo
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): /vendor/lib:/system/lib
01-01 20:01:46.156: E/OpenCV/StaticHelper(14057): OpenCV error: Cannot load info library for OpenCV
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): Library list: ""
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): First attempt to load libs
01-01 20:01:46.157: D/OpenCV/StaticHelper(14057): Trying to init OpenCV libs
01-01 20:01:46.157: D/OpenCV/StaticHelper(14057): Trying to load library opencv_java
01-01 20:01:46.177: D/OpenCV/StaticHelper(14057): OpenCV libs init was ok!
01-01 20:01:46.177: D/OpenCV/StaticHelper(14057): First attempt to load libs is OK
4

2 回答 2

1

当手机不支持 OpenCV 2.x 版本时,也会出现同样的问题。如果是这种情况,则模拟器可以正常工作。

切换到 OpenCV 版本 3.x,它工作正常。

于 2016-12-12T15:28:07.687 回答
0

logcat "01-01 20:01:46.177: D/OpenCV/StaticHelper(14057): OpenCV libs init was ok!"这意味着您的opencv库已成功加载,您的问题是什么?

于 2012-11-11T09:30:33.870 回答