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