Compile and run OpenCV code from the command line

By: Bulky Marten | 2 Years | Syntax: C++ | Views: 333
URL http://paste.itunix.eu/view/3292d435

  1. # For OpenCV 2.4.x
  2. cd /path/to/opencv/samples/c/
  3. # For OpenCV 3
  4. cd /path/to/opencv/samples/cpp/
  5. #Compile
  6. g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect
  7. #run
  8. ./facedetect

Reply to "Compile and run OpenCV code from the command line "

Here you can reply to the paste above