aksh-ai / object-tracking

Object Tracking with OpenCV in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Object Tracking with OpenCV in C++


Languages

Language:C++ 95.2%Language:Shell 3.1%Language:CMake 1.7%