OpenCV Python Tutorial For Beginners 2 – How to Install OpenCV for Python on Windows 10

Video is ready, Click Here to View ×


In this video on OpenCV Python Tutorial For Beginners, I am going to show How to Install OpenCV on Windows with Python.

To install OpenCV Via PIP give the following command
$ pip install opencv-python

Test OpenCV Installation
C:$ python
import cv2
print(cv2.__version__)
‘4.0.0’

pip is a package management system used to install and manage software packages written in Python.
OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. opencv is available on Mac, Windows, Linux. Works in C, C++, and Python.
it is Open Source and free. opencv is easy to use and install.

Starting with an overview of what the course will be covering, we move on to discussing morphological operations and practically learn how they work on images. We will then learn contrast enhancement using equalization and contrast limiting. Finally we will learn 3 methods to subtract the background from the video and implement them using OpenCV.

At…

android eclipse tutorial for beginners

23 Comments on “OpenCV Python Tutorial For Beginners 2 – How to Install OpenCV for Python on Windows 10”

  1. i get this error when installing the package any idea why?

    Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x041F67B0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/opencv-python/

  2. I try to Install OpenCV for Python on Windows 10 as your lecture "OpenCV Python Tutorial For Beginners 2 – How to Install OpenCV for Python on Windows 10". I cannot install. Please see attached error message. C:UsersHla>python

    Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32

    Type "help", "copyright", "credits" or "license" for more information.

    >>> quit()

    C:UsersHla>pip install opencv-python

    Collecting opencv-python

    Using cached https://files.pythonhosted.org/packages/a3/50/04d0669afe884f137c2f490642756e8c4a658254300a9eaf253d1e643085/opencv_python-4.1.0.25-cp37-cp37m-win_amd64.whl

    Collecting numpy>=1.14.5 (from opencv-python)

    Downloading https://files.pythonhosted.org/packages/ce/61/be72eee50f042db3acf0b1fb86650ad36d6c0d9be9fc29f8505d3b9d6baa/numpy-1.16.4-cp37-cp37m-win_amd64.whl (11.9MB)

    100% |████████████████████████████████| 11.9MB 778kB/s

    Installing collected packages: numpy, opencv-python

    Successfully installed numpy-1.16.4 opencv-python-4.1.0.25

    You are using pip version 19.0.3, however version 19.1.1 is available.

    You should consider upgrading via the 'python -m pip install –upgrade pip' command.

    C:UsersHla>python

    Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32

    Type "help", "copyright", "credits" or "license" for more information.

    >>> import cv2

    1

    2

    3

    4

    ImportError: numpy.core.multiarray failed to import

    Traceback (most recent call last):

    File "<stdin>", line 1, in <module>

    File "C:PythonPython373libsite-packagescv2_init_.py”, line 3, in <module> from .cv2 import*

    ImportError: numpy.core.multiarray failed to import

    >>>

    Best Regards, Kyi

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.