How mort1zr/acecam works
AceCam combines a tennis-video analysis worker with a web panel for managing players, submitting analyses, and viewing reports and processed video. The principal workflow is a user submitting a match video, the worker detecting and analyzing play, and the panel presenting results. The README documents Firebase emulators, the web app, and Python worker as the local runtime. Sampled source supports several internal calls; where subsystem wiring was not shown, connections are omitted rather than inferred.
Main entry points: pipeline_analysis.py Event analysis · main.py Video pipeline · App.jsx App routes · firestoreAnalysisService.js Analysis service
Components 27
Web experience
- App routes
web/src/App.jsx - Analysis submission
web/src/panel/pages/Analizar.jsx - Dashboard
web/src/panel/pages/Dashboard.jsx - Match views
web/src/panel/pages/Inicio.jsx - Player management
web/src/panel/pages/Jugadores.jsx - Recruitment forms
web/src/landing/pages/Postular.jsx - Plans and checkout
web/src/landing/pages/Precios.jsx - Data schema
web/src/panel/lib/schema.js - Analysis service
web/src/panel/lib/services/firestoreAnalysisService.js
Video intake
- Video import API
web/server/azure-videos/server.js - Application videos
web/server/application-video/app.js
Match analysis
- Video pipeline
model/main.py - Analysis configuration
model/config.py - Court geometry
model/court/refinement.py - Bounce detection
model/events/bounces.py - Serve pose filter
model/events/serve_pose.py - Serve detection
model/events/serves.py - Event analysis
model/pipeline_analysis.py
Results and scoring
- Match scoring
model/scoring/engine.py - Match statistics
model/stats/match_stats.py - Player positions
model/report/positions.py - Mini-court overlay
model/mini_court/mini_court.py - Match reports
model/report/match_report.py - Player-stat drawing
model/utils/player_stats_drawer_utils.py
Runtime services
- Python worker
model/worker/processor.py - Detection cache
model/utils/detection_cache.py
Other components
- Coach or player
Connections 28
- Coach or player → App routes: uses
README.md - App routes → Analysis submission: routes to
web/src/App.jsx - App routes → Dashboard: routes to
web/src/App.jsx - App routes → Match views: routes to
web/src/App.jsx - Coach or player → Player management: manages
README.md - Coach or player → Recruitment forms: submits application
- Coach or player → Plans and checkout: views plans
- Analysis submission → Analysis service: requests analysis
- Analysis service → Data schema: uses contract
web/src/panel/lib/services/firestoreAnalysisService.js - Analysis service → Python worker: wakes worker
web/src/panel/lib/services/firestoreAnalysisService.js - Coach or player → Python worker: provides video
README.md - Python worker → Video pipeline: processes video
model/worker/processor.py - Video pipeline → Analysis configuration: reads settings
model/main.py - Video pipeline → Event analysis: runs analysis
model/main.py - Event analysis → Bounce detection: detects bounces
model/pipeline_analysis.py - Event analysis → Serve pose filter: filters serves
model/pipeline_analysis.py - Event analysis → Serve detection: detects serves
model/pipeline_analysis.py - Event analysis → Court geometry: uses court geometry
model/pipeline_analysis.py - Event analysis → Match scoring: scores points
model/pipeline_analysis.py - Event analysis → Match statistics: builds statistics
model/pipeline_analysis.py - Event analysis → Player positions: creates position rows
model/pipeline_analysis.py - Video pipeline → Detection cache: caches detections
model/main.py - Video pipeline → Mini-court overlay: draws overlay
model/main.py - Mini-court overlay → Player-stat drawing: uses drawing helpers
model/mini_court/mini_court.py - Video pipeline → Match reports: builds report
model/main.py - Dashboard → Coach or player: shows statistics
README.md - Match views → Coach or player: shows processed video
README.md - Video import API → Application videos: shares import handler