ialibanadeem/football-analysis-cv ? reverse-engineered prompt
Reverse engineered prompt
Build me a football match analysis tool that can take a broadcast video and automatically detect the players, referees, and ball, then keep track of them throughout the clip.
I want it to show which player belongs to which team based on jersey colors, estimate who has possession of the ball, and overlay useful stats on the video like player speed, distance covered, and team possession. It should also handle camera movement so the tracking still works when the broadcast pans or zooms, and it should map the image into real pitch coordinates so the speed and distance numbers feel realistic.
Please make it run from one main script, read an input video from a folder, and save an annotated output video plus any metrics or reports it generates. If you need to look up current docs for the tracking or vision libraries, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit