How tomsfridrihsons/basketball_shot_analytics_cv works
HooperAI analyzes basketball video into made/missed shot results, then exposes the analysis through a laptop API and a companion mobile app for review, labeling, and statistics. The main workflow runs from video detection through shot segmentation, feature extraction, and prediction; labeling and training support model improvement, while evaluation measures performance. The README documents the major pipeline and app capabilities. Some internal calls are supported only by the SOURCE INDEX, so unsampled relationships are not expanded beyond those references.
Main entry points: lstm_infer.py Video inference · api.js Server client · server.py Analysis API · storage.js Local session store
Components 24
Shot analysis
- Video inference
scripts/lstm/lstm_infer.py - Ball tracking
scripts/ball_track.py - Shot features
scripts/shot_features.py - Rim-pass judge
scripts/shot_judge.py - Shot metrics
scripts/shot_metrics.py
Model learning
- Shot labeling
scripts/labeling/shot_labeler.py - Model training
scripts/lstm/lstm_train.py - Prediction evaluation
scripts/lstm/lstm_eval.py
Laptop service
- Analysis API
scripts/app/server.py - Laptop web UI
scripts/app/static/app.js - API authentication
scripts/app/auth.py - Firestore sync
scripts/app/firestore_sync.py
Mobile experience
- Record and upload
HooperAI/src/screens/RecordScreen.js - Server client
HooperAI/src/services/api.js - Session review
HooperAI/src/components/SessionReview.js - Session loading
HooperAI/src/screens/SessionScreen.js - Local session store
HooperAI/src/utils/storage.js - Session statistics
HooperAI/src/screens/StatsScreen.js - Session home
HooperAI/src/screens/HomeScreen.js
Identity and settings
- App settings
HooperAI/src/services/settings.js - Firebase sign-in
HooperAI/src/services/auth.js - Login screen
HooperAI/src/screens/LoginScreen.js
Other components
- Video user
- Mobile user
Connections 27
- Video user → Video inference: submits video
README.md - Video inference → Ball tracking: tracks ball
scripts/lstm/lstm_infer.py - Video inference → Shot features: extracts features
scripts/lstm/lstm_infer.py - Video inference → Rim-pass judge: predicts outcome
scripts/lstm/lstm_infer.py - Video inference → Shot metrics: computes metrics
scripts/lstm/lstm_infer.py - Shot labeling → Shot features: shares transforms
scripts/labeling/shot_labeler.py - Model training → Shot features: uses features
scripts/lstm/lstm_train.py - Model training → Rim-pass judge: fits rule
scripts/lstm/lstm_train.py - Prediction evaluation → Video inference: runs inference
scripts/lstm/lstm_eval.py - Analysis API → Video inference: analyzes video
scripts/app/server.py - Analysis API → API authentication: authenticates requests
scripts/app/server.py - Analysis API → Firestore sync: syncs sessions
scripts/app/server.py - Laptop web UI → Analysis API: calls JSON API
README.md - Mobile user → Record and upload: records or picks
README.md - Record and upload → Server client: uploads video
HooperAI/src/screens/RecordScreen.js - Server client → Analysis API: requests analysis
HooperAI/src/services/api.js - Server client → App settings: reads connection settings
HooperAI/src/services/api.js - Server client → Firebase sign-in: gets ID token
HooperAI/src/services/api.js - Session loading → Local session store: loads and saves
HooperAI/src/screens/SessionScreen.js - Session loading → Server client: fetches remote session
HooperAI/src/screens/SessionScreen.js - Session loading → Session review: renders review
HooperAI/src/screens/SessionScreen.js - Session review → Local session store: stores labels
HooperAI/src/components/SessionReview.js - Session review → Server client: sends feedback
HooperAI/src/components/SessionReview.js - Session home → Local session store: reads sessions
HooperAI/src/screens/HomeScreen.js - Session statistics → Local session store: reads session data
HooperAI/src/screens/StatsScreen.js - Mobile user → Login screen: signs in
HooperAI/src/screens/LoginScreen.js - Login screen → Firebase sign-in: authenticates account
HooperAI/src/screens/LoginScreen.js