Python-OpenCV code for tracking multiple colored balls
The file trackballs.py tracks two colored balls(red and green) in the given HSV range and displays the traces on screen.
Run normally if reading from webcam:
python trackballs.py
Provide video name as argument when using an existing video:
python trackballs.py --video sample.mkv
Tracks only the two colors within the defined range. clearing excessive noise when using video source.