opencv python安装contrib模块

contrib3.4.2.18 版本报如下错误:

OpenCV(3.4.3) /io/opencv_contrib/modules/xfeatures2d/src/surf.cpp:1016: 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'

安装 opencv-conrib-python 3.4.2.17

sudo pip2 install -U 'opencv-contrib-python<3.4.3.18'

你可能感兴趣的:(opencv python安装contrib模块)