Object Tracking with OpenCV in C++
Simple object tracking with OpenCV using C++.
Compiling
OpenCV has to be setup. Refer OpenCV docs.
Refer install_opencv_mac.sh
if you an Apple Silicon based system
g++ Main.cpp -o output -std=c++11 `pkg-config --cflags --libs opencv`
Execution
Use: ./output
Grab a green ball and show it in front of the camera, wait for the tracker to detect the object and press t
to start training the tracker to detect and track the particular object.
Press c
to clear the lines drawn on the GUI window while tracking the ball.