RP.

Clip Genius: ML Sports Highlight Generator

Clip Genius is an advanced Machine Learning tool that processes sports videos to automatically detect score changes and generate highlight clips. Developed during Datathon hosted by Google Waterloo, this project integrates FAISS-based similarity search, Computer Vision (OpenCV), and Multi-threaded Video Processing to streamline sports content creation. Veiw it on github here.

Final Output:

Faiss & Transcription Process:

How it works:

1. Extract Audio

2. Split Audio

3. Process File

4. Transcribe & Filter

5. Merge Clips

OpenCV Scoreboard Detection:

How it works:

The video processing pipeline uses OpenCV, PyTesseract, and FFmpeg to efficiently analyze frames. It starts by opening the video with cv.VideoCapture, resizing frames to 512x512, and detecting the scoreboard using edge detection and Hough Line Transform. Once located, the scoreboard region is extracted, and OCR processes it to recognize scores with a confidence threshold of 75. The detected scores are converted to absolute coordinates, overlaid onto the video, and a timestamp is added.

To optimize performance, only necessary pixels are processed, reducing computational load. OCR extracts numeric scores by cropping and preprocessing the scoreboard area—converting it to grayscale, resizing, and denoising. It then filters non-numeric text, returning a score or zero if no digits are found. This automated approach ensures accurate score tracking and highlight generation.

User Interface

The frontend of Clip Genius is built using PyQt5, providing a sleek and interactive GUI for users to generate AI-powered sports highlights. It simplifies the complex backend processing into an intuitive interface where users can:

Frontend

Technologies Used

Our ML video processing system utilizes the following key technologies:

Acknowledgments

We extend our gratitude to Laurier Analytics and Google Waterloo for organizing the datathon, providing mentorship, and fostering innovation in AI and data science.
Also shout out to the GOAT Shavam Garg 🐐

Contributors: Robert Pevec, JD, Swaab Anas, Suhana Khullar

Source Code: GitHub Repository