The easiest way to install OpenCV on Windows is to simply copy the cv2.pyd
file into Python's site-packages
directory (e.g. C:\python27\Lib\site-packages
).
To get the cv2.pyd
file, download and extract the latest version of the OpenCV installation executable from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/ and browse the extracted folder to find the file in the relevant build
directory (e.g. build\python\x86\2.7
).
(2)work method:
Installing openCV does not include the python bindings. You need to install these packages as well:
sudo apt-get install libopencv-dev python-opencv
所有评论(0)