本文介绍了用额外的模块构建opencv错误ocv_download的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Extramodules构建openCV.如果我尝试使用cmake配置项目文件(Windows 10上为vc14 x32),则会出现错误:

I try to build openCV with Extramodules. If I try to configure the projectfiles (vc14 x32 on windows 10) with cmake there's the error:

opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake处的CMake错误:13(ocv_download): 未知的CMake命令"ocv_download".

CMake Error at opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake:13 (ocv_download): Unknown CMake command "ocv_download".

有人遇到过这个问题,并且知道如何解决吗?

Did anyone ever have this problem and knows how to solve it?

推荐答案

简单的答案是,您正在使用opencv和opencv_contrib的不兼容版本,您可能正在opencv2.4.xx上安装了最新版本的opencv_contrib.

The simple answer is you are using incompatible versions of opencv and opencv_contrib, you might be installing current version of opencv_contrib on maybe opencv2.4.xx

这篇关于用额外的模块构建opencv错误ocv_download的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 16:05