Tracking a tennis ball using image processing techniques