首页 > 代码库 > 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配置
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。