Configuration of the PYTHON-OPENCV under Windows

Source: Internet
Author: User

Configuration of PYTHON-OPENCV under the Windows platform

1. Introduction

OpenCV

OpenCV is an open-source cross-platform computer Vision library that was built by Intel in 1999 and is now supported by Willow garage.

Python:

Python is an object-oriented, interpretive computer programming language invented by Gudio van Rossum in 1989.

2. The configuration of PYTHON-OPENCV under Windows system:

Platform: windows10-64-bit operating system

1) Download Python 2.7.11

: https://www.python.org/downloads/

Download directly after installation, the general default installation directory is C:\python27;

2) Configure environment variables for Python

Add the Python path to the environment variable.

2) Install Pip

: https://pypi.python.org/packages/41/27/9a8d24e1b55bd8c85e4d022da2922cb206f183e2d18fee4e320c9547e751/ Pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7

I chose pip-8.11.tar.gz here.

Unzip after download is complete

Press Start +r, enter CMD to enter command line.

Next go to your decompression path and install it.

1 CD your decompression path 2 > Python setup.py install

3) Install related modules

Restart the command line, and then enter the following code to install the module numpy,matplotlib

1 > pip install numpy2 > Pip install matplotlib

5) Download OpenCV

Https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.1.0/opencv-3.1.0.exe/download

After the download is complete, the installation path defaults to C:\OPENCV;

Move Cv2.pyd under C:\opencv\build\python\2.7\x64 in OpenCV to lib\site-packages in the Python installation directory

6) Testing

Open command line, input > Python

Enter import cv2

If there is no response, proof of loading success

Configuration of the PYTHON-OPENCV under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.