使用cmake编译opencv(包含了opencv_contrib),执行cmake命令时报错:
error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'create'".
解决方法在:
cmake -DOPENCV_ENABLE_NONFREE:BOOL=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
(参数中路径要根据自己的机器更改一下啦)
本文解决使用CMake编译OpenCV及其贡献模块时遇到的错误:This algorithm is patented and is excluded in this configuration。通过设置CMake选项OPENCV_ENABLE_NONFREE为ON并重新构建库来解决问题。
1263

被折叠的 条评论
为什么被折叠?



