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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.