Installing OpenCV on Linux

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

$ pip3 install numpy

Then install OpenCV:

$ pip3 install opencv-contrib-python

Additionally, we can install Matplotlib, which is a Python plotting library that produces quality figures:

$ pip3 install matplotlib