Skip to content

An app that improves your golf swing by giving you advice and useful metrics.

Notifications You must be signed in to change notification settings

joshkarbi/golf-swing-trainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golf-swing-trainer

A mobile app that analyzes user golf swings and provides advice on how to improve their swing, as well as some shot metrics to help them track their progress.

App Screenshots

Swing Analysis Visualization

App

Built using Flutter. Can be loaded onto an Android or iOS device following Flutter documentation.

Backend

Built using Python and TensorFlow MoveNet for pose estimation, OpenCV for golf ball tracking, and Flask for server capabilities.

Directory Structure

.
├── archive                   # Old code that might be useful at some point.
├── assets                    # Sample images/videos used to test the system.
├── data_extraction           # Module providing functionality to extract data out of video/images (i.e. golf ball coordinates, player positioning).
├── metrics                   # Module responsible for swing metric calculations and feedback generation.
├── static                    # Used by application.
└── tests                     # Unit tests.

How do I get setup?

  • Have Python 3.8 or 3.9 installed.
  • Install poetry: https://python-poetry.org/docs/
  • Create a virtual environment: virtualenv env/
  • Activate the virtual environment: source env/bin/activate (on Linux) or .\env\Scripts\activate (on Windows)
  • Install dependencies: poetry install
  • Run the server: flask run --host=0.0.0.0 --port=5000

About

An app that improves your golf swing by giving you advice and useful metrics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages