This project focuses on predicting the final golf ball location after the ball is hit by the golfer with only one camera using Machine Learning Algorithms and Open CV.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.The full project is deployed for Yamaha Motors and this is only a prototyped version. If anyone wants to get insights of the project they can mail me at utkarsh1148@gmail.com.
- To install the dependencies, you need to
install
the following:
- python 3
- openCV-python
- numpy
- mathplotlib
- scipy
- csv
-
Capture the side view of the shot.
-
Run
final_show.py
to get real time prediction.
-
Mark the position of ball to create a contour over it.
-
Press 'enter' to Continue.
-
Optical Flow would mark 3 points on the ball and track the pixel coordinates.
- Graph is plotted.
- Close that figure and you would get the final graph of the ball.
- This would give your final predictible position of the shot.
- Initial Speed
- Angle of projection
- Angle from Ground
- Spin of the ball
- Wind speed
- Air drag
- Magnus Effect
- Coefficient of friction of ground
- Ball Weight
We use SemVer for versioning.
Please feel free to contribute. We would love to see pull requests from you guys.
- Prayag Lehna
- Utkarsh Mishra
- Abhishek Sikari
- Pranav Magga