📚 Course contents
AI & Computer Vision, lesson 37 of 52
Claude as Your Match Commentator
Introduction
Your system knows a goal was scored at 4:10 by the blue team. Wouldn't it be great if it could say so, like a commentator? Today you'll connect your detector to Claude, a large language model, to write live commentary from the facts your code produces, and learn the most important rule of working with AI that writes: it must never be the one deciding what's true.
By the end of this lesson you'll be able to:
- Explain the split: code decides, Claude describes
- Turn detections into a small JSON of facts
- Call the Claude API with a system prompt, and read the reply
- Explain hallucination and check output against the facts
- Keep the match loop fast with a queue and a worker thread
- Handle API keys, privacy and cost responsibly

