WINDOWS10 use Anaconda to install OpenCV

Source: Internet
Author: User
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.

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.