Search code examples
c++opencv

How to install OpenCV for C/C++ on Ubuntu


I want to install the C/C++ interfaces for OpenCV. I have already installed it for Python, which was a very straightforward process, I just had to issue the command pip3 install opencv-python and it got installed.

I have followed many sites on how to install OpenCV for C/C++, but they teach of installing it from the source. Due to my limited bandwidth, I have problems downloading the sources, which are quite large. Is there any other straightforward process?


Solution

  • One option is to use the package manger apt

    sudo apt-get install -y libopencv-dev
    

    and then link your source to the libraries.