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
$ pip install numpy
Then install OpenCV:
$ pip install opencv-contrib-python
Additionally, we can install Matplotlib:
$ pip install matplotlib