Install OpenCV Python in 1 minute on Windows



Command:
py -3.6 -m pip install opencv-python
——————————————————————
Hi, in this video I’m gonna be showing you how to easily install the Python Opencv module on Windows.

So, after installing any Python version on your machine,
go to the Windows Command Prompt by typing “cmd”, like this:

Here, type the following command (which is on the description):

py -(your python version, in my case is the 3.6) -m pip install opencv-python

Hit enter and wait for the download and installation.. and that is it. If no error message appears, you’ve finished your opencv module installation and you can already use it.
To make sure everything is correct, we can simply import the library on our python code…
Open your IDE and
import cv2
Hit enter..
As you can see, nothing bad happens, it means that we have successfully installed and imported our computer vision library.
Now, if you get any error such as “pip or py not recognized as an internal or external command”, reinstall or modify your Python installation, making sure that pip is being installed and..
that python is being added to the windows environment variables.
computer vision, install opencv, install opencv2, opencv python, opencv windows, windows, python, how to install opencv

Nguồn: https://benjaminjcohen.com/

Xem thêm bài viết khác: https://benjaminjcohen.com/cong-nghe/

30 Comments

  1. so many days for something so simple

  2. prompt error showing
    py is not a command

  3. You are a legend. I havent used opencv in over 2 years and one word to describe installing it before would be: pain
    I was dreading going through it again
    But you just saved my life
    Is there a way to donate? People like you deserve donation because you literally save me time
    Thank you Neto

  4. I Want To Kiss You . Realy

  5. Thank you, easiest and most eloquent way to do this!

  6. Thank you you solve my problem i was doing it for last 2 weeks thanks a lot man

  7. Very helpful video!!!After so many efforts, I finally installed opencv Python for my project!!Thank U so much!!

  8. u saved my life bro thank you

  9. simple yet very much useful information

  10. Finally a easy solution to my problem, very thanks

  11. i could not use opencv it showing error
    Traceback (most recent call last):

    File "<pyshell#0>", line 1, in <module>

    import cv2

    File "C:UsersashaAppDataLocalProgramsPythonPython37libsite-packagescv2__init__.py", line 3, in <module>

    from .cv2 import *

    ImportError: DLL load failed: The specified module could not be found.

  12. Thank u so much.finally this video solved my problem

  13. Thank you very much!!!
    It really solved my problem and saved me a lot of time 🙂

  14. Finally a solution to my problem, thank you!

  15. thank you very much finally it works ,

  16. mine says py not recognized as an internal or external command, what to do?

  17. It shows me Python not installed but I have installed version 3.7

Leave a Reply

Your email address will not be published. Required fields are marked *