📚 Course contents
AI & Computer Vision, lesson 30 of 52
Live Match Analytics Dashboard in JavaScript
Introduction
Detections are just numbers until someone can see what they mean. Today you'll build a scoreboard for your detector: a web dashboard that plays the match video with boxes drawn on top, a heatmap of where players have been, live statistics and an event log, all fed by a JSON file that your Python code writes.
By the end of this lesson you'll be able to:
- Define a simple JSON format for detection results (frames, players, ball)
- Fetch JSON in the browser and replay it like a live feed
- Draw a pitch view, a line chart and a heatmap on a canvas
- Compute summary numbers (players now, most at once, ball visibility, goal-zone entries)
- Re-use the edge trigger from lesson 27 to log events once
- Explain why a dashboard should show a few clear numbers, not everything

