A real-time basketball shot analysis tool that uses computer vision and AI to provide instant feedback on shooting form.
-
Clone the repository
git clone https://github.com/rohtumm/Basketball-Feedback-Generator.git cd Basketball-Feedback-Generator -
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up your API key
- Create a
.envfile in the project root - Add your Gemini API key:
GEMINI_API_KEY=your_api_key_here
- Create a
-
Activate the virtual environment
source venv/bin/activate # On Windows: venv\Scripts\activate
-
Run the application
python feedback_generator.py
-
Use the application
- Take a shot!
- The system will detect the motion and provide AI-generated feedback
- Press 'q' to quit