首页 > 代码库 > window32环境python+opencv配置

window32环境python+opencv配置

准备入图像处理坑了。

win32环境

python2.7.9:https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi

numpy1.8.1:http://sourceforge.net/projects/numpy/files/NumPy/1.8.1/numpy-1.8.1-win32-superpack-python2.7.exe/download

scipy:http://sourceforge.net/projects/scipy/files/

matplotlib:http://download.csdn.net/download/jakung/4434836

opencv:http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.10/opencv-2.4.10.exe/download

opencv安装:

1.把opencv解压到C:\Python27\opencv\opencv

2.把C:\Python27\opencv\opencv\build\python\2.7\x86\cv2.pyd拷贝至C:\Python27\Lib\site-packages

测试:

1 import cv22 image = cv2.imread("C:\Users\Public\Pictures\Sample Pictures\Kolar.jpg")3 cv2.imshow("Image",image)4 cv2.waitKey(0)

技术分享

window32环境python+opencv配置