Opencv3+python error problem (cmd command OK)

Source: Internet
Author: User

2018-03-0223:58:59

First run the cmd command in case you have successfully installed Python, download and install the OpenCV plugin

If the command line can be used

Import Cv2

But on the IDE only import CV2 error, that is the IDE configuration problems

can be resolved by

Then we find Cv.2 's address.

Add the PIP command to install the Python OpenCV script address as follows

The final Test code

Import as    cvsrc=cv.imread ("e:/opencv_pictures/test.jpg") Cv.namedwindow ("test", CV.) window_autosize) cv.imshow ("test", SRC) cv.waitkey (0 ) cv.destroyallwindows ()

Final effect

Opencv3+python error problem (cmd command OK)

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.