It was created out of the need to explore OpenCV library in order to count people passsing through a door. I based my research and the code on this article http://www.femb.com.mx/people-counter and the OpenCV API reference.
Compiler:
apt-get install cmake g++ gdb
OpenCV:
apt-get install git libavcodec-dev libavformat-dev libgtk2.0-dev libswscale-dev pkg-config
cd ~/
git clone https://github.com/opencv/opencv.git
cd opencv
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local ..
make
make install
Compiler:
brew install cmake
OpenCV:
brew install opencv3 --with-ffmpeg
brew link opencv3 --force
Compiler:
OpenCV:
cmake --build /build
./build/people-counter data/bus.avi