Installing OpenCV on Windows

Ensure you have installed NumPy. To install NumPy, enter the following:
 $ pip install numpy

Then install OpenCV:

$ pip install opencv-contrib-python

Additionally, we can install Matplotlib:

$ pip install matplotlib