1. First download Python current version is 2.7.10
2. Install numpy using pip install NumPy.
May prompt error, need to install C compiler, follow the prompts to "aka.ms/vcpython27" download the corresponding version to install.
Perform the "Pip install NumPy" again to complete the numpy installation.
3. Go directly to the official website to download the opencv3.0 version, is an EXE installation package, automatically find Python and complete the installation.
4. Copy the corresponding installation package from "\opencv\build\python\2.7" in the Python27 directory to "\lib\site-packages".
5. Continue to adopt:
Import cv2img = Cv2.imread ("a.jpg") Cv2.namedwindow ("image") cv2.imshow ("Image", img) cv2.waitkey (0) Cv2.destroyallwindows ()
Displays "A.jpg" under the current directory.
Note that this is still called "Cv2".
Python calls Opencv3