Python calls Opencv3

Source: Internet
Author: User

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

Related Article

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.