我需要使用cv2.xfeatures2d.SIFT_create()函数进行特征检测。我已经下载了open_contrib
。但是当使用cmake将额外的模块与open_cv包连接时,我仍然会遇到大量错误。这是我收到的错误消息。
更新 现在我将参数FILENAME从文件
更改为PACKAGEFiles that use FILENAME instead of PACKAGE:
opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake
opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake
现在我还有两个问题,有人可以帮忙吗?
CMake Error at /home/darren/Desktop/OpenCV/cmake/OpenCVUtils.cmake:1043 (file):
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
/home/darren/Desktop/opencv_contrib-master/modules/dnn_modern/CMakeLists.txt:20 (ocv_download)
CMake Error at /home/darren/Desktop/OpenCV/cmake/OpenCVUtils.cmake:1047 (message):
Failed to download . Status=
Call Stack (most recent call first):
/home/darren/Desktop/opencv_contrib-master/modules/dnn_modern/CMakeLists.txt:20 (ocv_download)
如何删除此错误并让我使用该方法....(我的opencv版本是3.2.0,我的contri包也是3.2.0)
答案 0 :(得分:0)
这个问题发生在我身上,重新下载额外的模块解决了我的问题。
您是否尝试在运行cmake时设置OPENCV_EXTRA_MODULES_PATH
?运行cmake时的-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.2.0/modules
。