This code helps you to understand and track objects of some color using webcam.
The example code is in Python (version 2.7 or higher will work). You need to install opencv library
The goal here is fair self-explanatory:
- Detect the presence of a colored ball using computer vision techniques.
- Track the ball as it moves around in the video frames, drawing its previous positions as it moves.
OpenCV comes with a trainer as well as detector.
For more information, see
To run the code, type python Track.py
python Track.py