

Method 2: Install OpenCV through the source Here, the 4.2.0 OpenCV version has been installed on this system. The following output will display on your screen.

The above command will install all the necessary packages on your system.Īfter completing the installation of OpenCV, you can verify the installation by importing the cv2 module and print the installed version of OpenCV by executing the following command: $ python3 -c "import cv2 print(cv2._version_)" Install OpenCV by running the following command: $ sudo apt install libopencv-dev python3-opencv Update the apt cache by using the following command: $ sudo apt update OpenCV library is available in the official Ubuntu repository in Ubuntu 20.04. Open the terminal by pressing ‘Ctrl+Alt+t’ and start the installation of OpenCV using the following methods: Method 1: Installation of OpenCV using the Ubuntu repository If you want to install the latest stable version of the OpenCV library on your system then, using the source method you can install it. You can install OpenCV using two different ways: In this article, we will describe how to install the OpenCV library on Linux distribution Ubuntu 20.04. OpenCV library can be used for a wide range of applications, including face recognition and detection, medical image analysis, motion tracking, surveillance video, 3D model extraction, and much more. It is able to use multi-core processing and GPU acceleration for real-time operating tasks. Open means it is an open-source library with bindings for python, C++, and Java and supports different Operating Systems like Windows and Linux.

OpenCV is a library of computer vision abbreviated as Open Source Computer Vision Library.
