This project is an automated, real-time camera tracking system that uses classic Computer Vision techniques to follow specific objects, such as balls, based on their color profiles and geometric contours. Built for the Raspberry Pi, it continuousl…
This project is an automated, real-time camera tracking system that uses classic Computer Vision techniques to follow specific objects, such as balls, based on their color profiles and geometric contours. Built for the Raspberry Pi, it continuously analyzes a live video feed using OpenCV and applies a Proportional (P) control algorithm to calculate the target’s distance from the center of the frame. This data is instantly sent to an I2C motor driver (PCA9685) that dynamically adjusts a two-axis pan-tilt servo mechanism, keeping the object perfectly centered in the shot. The system also features a lightweight, zero-lag Flask web server that streams the annotated video feed and telemetry directly to any browser, resulting in a highly customizable, closed-loop control project that is very easy to implement by following the provided steps.
Used Gemini for fixing bugs