first-opencv-prj is used as an example of simple OpenCV project, which capture video frames from webcam and display the frames on a window.
- macOS Sierra Version 10.12.5
- Xcode Version 8.3.3 (installed from App Store)
- Homebrew Version >1.2.0
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
- cmake version 3.8.2 (installed automatically in the installation of opencv library below)
- opencv version 3.2 (installed by Homebrew)
brew tap homebrew/science
brew install opencv3 --c++11 --with-contrib --with-examples --with-opengl --with-qt --with-tbb
./build.sh
./build/first-opencv
- Captured video frames will be displayed on the window automatically
- Press [ESC] to exit program