Photo of Me

Luke Fahmy

Predicting the Trajectory of a Basketball Shot

I set out to predict the trajectory of a basketball shot using OpenCV in Python. The goal was to have a short video of the first portion of a shot (before the ball reaches its peak), and predict if the ball will go in or not. I used background and foreground segmentation, blob detection, and least-squares estimation to achieve this result in 2D. I found that the environment of the shooter has an enormous effect on the results, and the ability to detect the ball. All in all, this project requires much more work to be practically useful and not just interesting.