> ## Documentation Index
> Fetch the complete documentation index at: https://visionagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Live Sports Commentator

> Build a real-time AI sports commentator using object detection and realtime models

<Card title="View Football Commentator Example on GitHub" icon="github" href="https://github.com/GetStream/vision-agents/tree/main/examples/04_football_commentator_example">
  Check out the complete Football Commentator example in our GitHub repository
</Card>

In this example, we build a real-time sports commentator that combines [Roboflow's RF-DETR](https://github.com/roboflow/rf-detr) for player and ball detection with realtime models from [Gemini](https://ai.google.dev/) and [OpenAI](https://platform.openai.com/docs/guides/realtime). The system annotates video with bounding boxes, detects game events (like when the ball reappears after fast action), and triggers AI commentary. This example also explores the current limitations of realtime video understanding and showcases Vision Agents' ability to hot-swap between providers with minimal code changes.

<Info>
  Vision Agents requires a [Stream](https://getstream.io/try-for-free/) account
  for real-time transport. Most providers offer free tiers to get started.
</Info>

## What You Will Build

* Detect players and the ball in real time using [Roboflow RF-DETR](https://roboflow.com/model/rf-detr)
* Annotate live video with bounding boxes and detection overlays
* Trigger AI commentary based on game events (ball reappearance, fast plays)
* Compare [Gemini Live](https://ai.google.dev/) vs [OpenAI Realtime](https://platform.openai.com/docs/guides/realtime) with a one-line swap
* Run on [Stream's](https://getstream.io/) low-latency edge network

## Next Steps

<CardGroup cols={2}>
  <Card title="Roboflow Integration" icon="plug" href="/integrations/vision/roboflow">
    Explore Roboflow detection models and configuration
  </Card>

  <Card title="AI Golf Coach" icon="golf-ball-tee" href="/examples/golf-coach">
    See another video processing example with YOLO pose detection
  </Card>
</CardGroup>
