WINDOWS10 Use Anaconda to install OpenCV
This assumes that you have installed the Anaconda environment and will use the graphical interface provided by Anaconda Anaconda Navigator for Environment creation and toolkit installation.
* Note: A simple tutorial on anaconda, please stamp here to create a new python environment
Start Anaconda Navigator, the initial interface is shown below
Select the environments on the left, click the Create button shown in the lower left arrow to eject the dialog box below.
Enter Environment Name. Note thatPython version needs to choose 2.7. The system will automatically download and install Python 2.7, after the installation is complete, the interface shown in the following image
installing OPENCV in a new environment
In the area pointed to by the arrow in Figure 1th below, select All. In the area indicated by arrow 2nd, enter OpenCV. The results are shown in the following figure, and the hints are not found.
At this point, you need to log on to the [Anaconda Cloud] (https://anaconda.org "Anaconda Cloud") website for further searches.
The search results on the Anacond Cloud Web site are shown in the following illustration
Here, there are two ways to further install OpenCV Mode 1: Command line mode
Click on the top of the "Menpo/opencv3", you can see the following page
Depending on the prompts below the page, you can install it directly using the following command line
Conda install-c Menpo opencv3=3.2.0
Mode 2: Add Channel to Navigator
In the lower interface, click on the arrow pointing to "channels"
The dialog box below pops up:
Click the Add button in the upper right corner, enter Menpo, and then click the Update Channels button in the lower right corner.
At this point, once again, in the lower Navigator main interface, enter OpenCV, and you will get two matches as shown in the following figure
Select OpenCV and click Apply
It will take a long time to wait until the installation is complete. Test
Run the Spyder in Anaconda Navigator and run the following command in the Ipython console:
Import cv2
Print cv2.__version__
will get the following output
3.1.0
OK, the Open CV is already installed in the Python environment.