Categories: TutorialsUbuntu

How to Install OpenCV on Ubuntu 22.04

OpenCV, which stands for Open Source Computer Vision Library, is a versatile software library equipped with an extensive array of over 2500 algorithms tailored for computer vision and machine learning endeavors.

Designed for efficiency, OpenCV boasts support for multithreading, multi-core processing, and hardware acceleration. This makes it exceptionally fast and well-suited for tasks requiring high-performance computing. The library seamlessly integrates with other powerful scientific computation libraries such as NumPy, TensorFlow, and PyTorch.

Incorporate OpenCV into your projects to leverage its robust algorithmic capabilities and accelerate the development of cutting-edge computer vision and machine learning applications.

Read: How to Install TensorFlow on Ubuntu 22.04

How to Install OpenCV from Ubuntu Repositories

Installing OpenCV from the official Ubuntu repositories can be done easily as follows:

1.In your terminal, execute the following command:

sudo apt update

2. To Install OpenCV, run the command below:

sudo apt install libopencv-dev

Once this is done, execute the command below to check the opencv version:

dpkg -l libopencv-dev

 

The post How to Install OpenCV on Ubuntu 22.04 appeared first on net2.

Ubuntu Server Admin

Recent Posts

How to avoid package End of Life through backporting

In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…

3 days ago

Showcasing open design in action: Loughborough University design students explore open source projects

Last year, we collaborated with two design student teams from Loughborough University in the UK.…

7 days ago

Canonical Ubuntu and Ubuntu Pro now available on AWS European Sovereign Cloud

January 15, 2026 – Canonical, the publisher of Ubuntu and provider of open source security,…

1 week ago

How to install GitLab on Ubuntu 24.04

How to install GitLab on Ubuntu 24.04 will be explained in this blog post with…

1 week ago

How to Set Up OpenVPN Access Server on Ubuntu 24.04 (VM) & Connect Using OpenVPN Connect

Do you know what was always there but has increased multiple times in the last…

2 weeks ago

How to build DORA-ready infrastructure with verifiable provenance and reliable support

The Digital Operational Resilience Act (DORA) came into force across the EU on January 17,…

2 weeks ago