OpenCV install opencv_contrib on Windows

后端 未结 5 1442
面向向阳花
面向向阳花 2020-11-29 05:48

I am using OpenCV 3.1.0 , Python 2.7.11 and Windows 10. I want to build the extra modules (opencv_contrib

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 05:58

    For Python 3.6/3.5 you could use *.whl (Python on Wheels) module from here:

    pip install opencv_python-3.2.0+contrib-cp36-cp36m-win_amd64.whl
    

    For Python 2.7 there is no opencv+contrib in one module, but you could separately install opencv module without contrib from here at the end of the page and then add opencv-contrib-python module:

    pip install opencv_python-3.2.0.7-cp27-cp27m-win_amd64.whl
    pip install opencv-contrib-python
    

    Do not mix opencv+contrib opencv-python (3.2.0+contrib) and opencv-contrib-python (3.2.0.7) modules, otherwise your "import cv2" stop to work till you delete opencv-contrib-python module.

提交回复
热议问题