adwaitkelkar/Football-Highlights- — reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool that can take a full length football match video and automatically create a shorter highlights video focused on goals.
The basic flow should be simple for me to run. It should look at the match video, find and crop the scoreboard area so there’s less noise, use OCR to read the team names and score, save the extracted score data over time into a table, then figure out when the score changes. For each goal, grab the video segment around that moment and stitch all the goal clips together into one final highlights video.
Please include a small example script or command I can run with an input video path and an output video path. Keep the code understandable and organized, with comments where the logic is important. If there are assumptions, like where the scoreboard is or how much time to include before and after each goal, make them easy to change. Look up current docs online if needed.
Want more depth? Deep Reverse