Published on August 6, 2017 by ProgrammingKnowledge

List of all commands – www.codebind.com/cpp-tutorial/install-opencv-ubuntu-cpp/
In this post we will see How to Install OpenCV in Ubuntu for C/C++.
OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. OpenCV means Intel® Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement some popular Image Processing and Computer Vision algorithms. OpenCV is Available on Mac, Windows, Linux (Terminal environment).

————————-Follow——————-
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT

Leave a Reply

10 Comments on "How to Install OpenCV in Ubuntu 16.04 LTS for C / C++"

Notify of
avatar

Rizwan Akhtar
Guest
Rizwan Akhtar
12 days 12 hours ago

sir i got this error ……CMake Error: The following variables are used in this project, but they are set to NOTFOUND.Please set them or make sure they are set and tested correctly in the CMake files:PROTOBUF_LIBRARY (ADVANCED) linked by target "opencv_dnn_modern" in directory /opt/opencv_contrib/modules/dnn_modern– Configuring incomplete, errors occurred!See also "/opt/opencv/release/CMakeFiles/CMakeOutput.log".See also "/opt/opencv/release/CMakeFiles/CMakeError.log".

Rizwan Akhtar
Guest
Rizwan Akhtar
6 days 18 hours ago

i appreciate your help ….. but i again i got the same error……

Matheus Muniz
Guest
Matheus Muniz
8 days 12 hours ago

I did not install opencv_contrib. So I do not know if it causes any problemsI had not seen this problem yet. But I solved it as follows:Do everything normally until the part of entering the opencv folder: "cd opencv".But then you enter the following commands:Mkdir buildCd buildAnd then enter ONLY this command:Cmake -D CMAKE_BUILD_TYPE = Release -D CMAKE_INSTALL_PREFIX = / usr / local ..Then you can sendMake -j4Make installAnd that's it, the library will be installed

Matheus Muniz
Guest
Matheus Muniz
8 days 12 hours ago

In the code that was provided to us for testing we need to correct the first line for:#include <opencv2/highgui/highgui.hpp>

Rizwan Akhtar
Guest
Rizwan Akhtar
8 days 14 hours ago

again it shows same error….CMake Error: The following variables are used in this project, but they are set to NOTFOUND.Please set them or make sure they are set and tested correctly in the CMake files:PROTOBUF_LIBRARY (ADVANCED) linked by target "opencv_dnn_modern" in directory /opt/opencv_contrib/modules/dnn_modern– Configuring incomplete, errors occurred!See also "/opt/opencv/release/CMakeFiles/CMakeOutput.log".See also "/opt/opencv/release/CMakeFiles/CMakeError.log".

Matheus Muniz
Guest
Matheus Muniz
9 days 5 hours ago

I was also having this problem. In step 4, put this:Cmake -D CMAKE_BUILD_TYPE = Release -D CMAKE_INSTALL_PREFIX = / usr / local ..

Khan Yaseen
Guest
Khan Yaseen
13 days 14 hours ago

what is open cv

Khan Yaseen
Guest
Khan Yaseen
13 days 13 hours ago

oh i need help can we talk in email

Balasriharsha Cheeday
Guest
Balasriharsha Cheeday
13 days 13 hours ago

It's an open source library for computer vision useful for creating applications on augmented reality and other image processing techniques

Balasriharsha Cheeday
Guest
Balasriharsha Cheeday
13 days 14 hours ago

thanks for the video please upload opencv with android and python videos

wpDiscuz