How amr-mo-ali/super-7 works
Football Analysis accepts a backend-owned video request, queues work, analyzes the selected player, and delivers the completed result to the supplied callback. Its analysis capabilities include detection and tracking, interaction and technical-event analysis, movement and scoring, and public result presentation. The graph emphasizes the documented request flow and sampled composition/lifecycle code; several analysis stages are represented by their exact source paths, but their internal call order is not established by the excerpts.
Main entry points: main.py App composition · routes.py Analysis routes · player_tracker.py Player tracking · engine.py Player rating
Components 23
API and jobs
- App composition
src/main.py - Analysis routes
src/api/routes.py - Request lifecycle
src/api/request_lifecycle.py - Analysis queue
src/services/analysis_queue.py - Callback delivery
src/services/callback_service.py - Analysis contracts
src/schemas/analysis.py - Public result mapping
src/api/public_rating_mapper.py
Video analysis
- Analysis composition
src/services/analysis_composition.py - Video validation
src/services/video_validator.py - Player detection
src/adapters/yolo_player_detector.py - Ball detection
src/adapters/yolo_ball_detector.py - Player tracking
src/services/player_tracker.py - Target selection
src/services/selection.py
Events and ratings
- Interactions
src/services/interactions/analyzer.py - Technical events
src/services/technical_events/analyzer.py - Movement analysis
src/services/movement/analyzer.py - Event arbitration
src/services/event_arbitration/arbitrator.py - Player rating
src/services/player_rating/engine.py - Detailed ratings
src/services/detailed_rating/engine.py
Runtime support
- Runtime configuration
src/core/config.py - Analysis artifacts
src/diagnostics/artifacts.py - PostgreSQL storage
src/adapters/psycopg_analysis_job_repository.py
Other components
- Backend caller
Connections 21
- Backend caller → Analysis routes: submits request
README.md - Analysis routes → Analysis queue: queues analysis
src/api/routes.py - App composition → Analysis routes: registers routes
src/main.py - App composition → Request lifecycle: composes lifecycle
src/main.py - App composition → Analysis queue: starts worker
src/main.py - App composition → Analysis composition: builds components
src/main.py - Analysis routes → Callback delivery: sends result
src/api/routes.py - Analysis routes → Public result mapping: maps public result
src/api/routes.py - Callback delivery → Backend caller: posts result
README.md - Analysis routes → Analysis contracts: returns response
src/api/routes.py - App composition → Runtime configuration: loads settings
src/main.py - App composition → Analysis artifacts: configures artifacts
src/main.py - Request lifecycle → Analysis artifacts: creates sessions
src/api/request_lifecycle.py - Analysis composition → Player tracking: provides tracker
src/main.py - Player tracking → Player detection: uses detector
src/services/player_tracker.py - Player tracking → Ball detection: uses detector
src/services/player_tracker.py - Player tracking → Target selection: uses selector
src/services/player_tracker.py - Player rating → Interactions: consumes evidence
src/services/player_rating/engine.py - Player rating → Technical events: consumes evidence
src/services/player_rating/engine.py - Detailed ratings → Event arbitration: uses decisions
src/services/detailed_rating/engine.py - Public result mapping → Analysis contracts: maps response
src/api/public_rating_mapper.py