
sudo apt install libjpeg-dev libtiff-dev libjasper-dev libpng-dev libwebp-dev libopenexr-dev sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libdc1394-22-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev These packages provide the support that enable OpenCV to use different formats for both images and videos. Install these packages that assist in the compilation of the OpenCV code: sudo apt install cmake build-essential pkg-config git

Update the packages by typing this command: sudo apt-get update sudo apt-get upgrade The process has a lot of steps, so go slow. I will largely be following this excellent tutorial.

Let’s install OpenCV on our Raspberry Pi.
