First Step
git clone https://github.com/brunojus/bash-opencv.git
Second Step
Third Step
-
pkg-config --cflags opencv
You probably see this-I/usr/local/include/opencv -I/usr/local/include
-
pkg-config --libs opencv
You probably this in terminal-L/usr/local/lib -lopencv_shape -lopencv_stitching -lopencv_objdetect -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_core
g++ programa.cpp -o program `pkg-config --cflags --libs opencv`
- ./program
g++ test_opencv.cpp -o name `pkg-config --cflags --libs opencv`
- ./name HappyFish.jpg