Published on August 6, 2017 by ProgrammingKnowledge
Want create site? Find Free WordPress Themes and plugins.

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

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

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

Notify of
avatar

johnshow
Guest
1 month 8 days ago

What about another versions of linux? i want to install it on kali, and configure my website www.domyhomework4me.net/

MO BEN
Guest
MO BEN
1 month 14 days ago

hello! I followed all the procedures and everything went fine except for this error "No package 'tesseract' found" and the –modversion output for opencv is "2.4.9.1" can someone help me with this please

MO BEN
Guest
MO BEN
1 month 14 days ago

hello! I followed all the procedures and everything went fine except for this error "No package 'tesseract' found" and the –modversion output for opencv is "2.4.9.1" can someone help me with this please

wyajdd
Guest
wyajdd
1 month 17 days ago

OpenCV install failed, lots of warning issue.

wyajdd
Guest
wyajdd
1 month 17 days ago

reinstall today, now it works.

wyajdd
Guest
wyajdd
1 month 17 days ago

OpenCV install failed, lots of warning issue.

wyajdd
Guest
wyajdd
1 month 17 days ago

reinstall today, now it works.

malhar jajoo
Guest
malhar jajoo
1 month 19 days ago

Hey I did this but it is not able to open the webcam for video. The gstreamer seems to be throwing up errors complaining it cannot open pipeline….

malhar jajoo
Guest
malhar jajoo
1 month 19 days ago

Hey I did this but it is not able to open the webcam for video. The gstreamer seems to be throwing up errors complaining it cannot open pipeline….

monu kumar
Guest
monu kumar
2 months 23 days ago

opencv_contrib is not added to the library. found the problem while running some code.here is the output of pkg-config –libs opencv-L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_photo -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_img_hash -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_dnn -lopencv_plot -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ml -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_flann -lopencv_xobjdetect -lopencv_imgcodecs -lopencv_objdetect -lopencv_xphoto -lopencv_imgproc -lopencv_coreplease suggest how to add opencv_contrib to the list.

monu kumar
Guest
monu kumar
2 months 23 days ago

opencv_contrib is not added to the library. found the problem while running some code.here is the output of pkg-config –libs opencv-L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_photo -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_img_hash -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_dnn -lopencv_plot -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ml -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_flann -lopencv_xobjdetect -lopencv_imgcodecs -lopencv_objdetect -lopencv_xphoto -lopencv_imgproc -lopencv_coreplease suggest how to add opencv_contrib to the list.

Rizwan Akhtar
Guest
Rizwan Akhtar
4 months 9 days 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
4 months 3 days ago

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

Matheus Muniz
Guest
Matheus Muniz
4 months 5 days 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
4 months 5 days 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
4 months 5 days 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
4 months 6 days ago

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

wpDiscuz