DarwinsBuddy/foosball-ai — reverse-engineered prompt
Reverse engineered prompt
Build me a Python computer vision tool for a foosball table. I want to point a webcam at a match, or load a recorded video, and have the app find the play area, follow the ball, show its trail, and automatically update the score when a goal happens on either side. It should have a simple live view that draws the table area, the ball position, recent path, goal zones, and current score, but it should also be able to run without showing a window.
Please include setup and run commands, sensible config files for camera calibration, ball color calibration, and goal detection, plus a way to calibrate the ball color from a sample video. If a goal is detected, let it optionally play a sound or call a webhook so another scoreboard can react. Support both webcam input and video file input. Use Python and OpenCV, and look up current docs online if needed.
Want more depth? Deep Reverse