首页 > 编程语言 > 详细

1、在 Windows 上安装 OpenCV-Python

时间:2017-01-12 13:17:19      阅读:237      评论:0      收藏:0      [点我收藏+]

Goals

In this tutorial
  • We will learn to setup OpenCV-Python in your Windows system.

Below steps are tested in a Windows 7-64 bit machine with Visual Studio 2010 and Visual Studio 2012. The screenshots shows VS2012.

Installing OpenCV from prebuilt binaries

  1. Below Python packages are to be downloaded and installed to their default locations.

    1.1. Python-2.7.x.

    1.2. Numpy.

    1.3. Matplotlib (Matplotlib is optional, but recommended since we use it a lot in our tutorials).

  2. Install all packages into their default locations. Python will be installed to C:/Python27/.

  3. After installation, open Python IDLE. Enter import numpy and make sure Numpy is working fine.

  4. Download latest OpenCV release from sourceforge site and double-click to extract it.

  1. Goto opencv/build/python/2.7 folder.

  2. Copy cv2.pyd to C:/Python27/lib/site-packages.

  3. Open Python IDLE and type following codes in Python terminal.

    >>> import cv2
    >>> print cv2.__version__
    

If the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python successfully.

http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_setup/py_setup_in_windows/py_setup_in_windows.html

 

1、在 Windows 上安装 OpenCV-Python

原文:http://www.cnblogs.com/gary-guo/p/6275798.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!