close

(1) 開啓下載網頁 https://pypi.python.org/pypi/opencv-python

(2) pip install opencv-python

(3) 將會自動 Import the opencv package & numpy

Installing collected packages: numpy, opencv-python
Found existing installation: numpy 1.8.1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. 
Uninstalling numpy-1.8.1:
Successfully uninstalled numpy-1.8.1
Successfully installed numpy-1.13.3 opencv-python-3.3.0.10

(4)測試模組

c:\python> python  

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print cv2.__version__
3.3.0
>>> import numpy
>>> print numpy.__version__
1.13.3
>>>

arrow
arrow
    文章標籤
    opencv
    全站熱搜

    stanley 發表在 痞客邦 留言(0) 人氣()