Return to Snippet

Revision: 72390
at August 16, 2017 02:29 by droidronin


Updated Code
$  pkg-config opencv --cflags


-I/usr/local/include/opencv -I/usr/local/include

    $  pkg-config opencv --libs

pkg-config --cflags opencv
pkg-config --libs opencv

Alternatively you can write a simple program and print the following defs:

CV_MAJOR_VERSION
CV_MINOR_VERSION

Revision: 72389
at August 16, 2017 02:27 by droidronin


Initial Code
$  pkg-config opencv --cflags


-I/usr/local/include/opencv -I/usr/local/include

    $  pkg-config opencv --libs

Initial URL
https://www.quora.com/How-do-I-check-if-OpenCV-is-installed-on-a-machine

Initial Description
Type in the following commands. If you get the same output, it means that opencv is installed correctly

    $  pkg-config opencv --cflags


-I/usr/local/include/opencv -I/usr/local/include

    $  pkg-config opencv --libs


/usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so

Initial Title
Check version of OpenCV

Initial Tags

                                

Initial Language
Bash