Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 555 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 555 Bytes

Ball Tracking

This project uses OpenCV to track ball movement. The process for tracking is as follows:

  • Convert color to HSV
  • Create a pixel mask to identify the ball using upper and lower color bounds
  • Erode and dilate the mask to reduce noise
  • Indentify contours and draw a circle around the ball

Prerequisites

Getting Started

Run the ball tracking script against the example video:

$ python ball_tracking.py --video ball_tracking_example.mp4