TheBall is a Python project originally developed for RoboCup Soccer competitions. It detects and tracks soccer balls or other objects based on their color using OpenCV and the HSV color space. This project is optimized for real-time image processing in robotic soccer scenarios.
- π Real-time detection and tracking of objects using color thresholds.
- π¨ Interactive color picker to dynamically adjust HSV values.
- π€ Designed specifically for robotics and competitive environments.
-
Install dependencies:
pip install opencv-python numpy
-
Run the script:
python main.py
-
Use these keys for interaction:
q: Quit the program. c: Pick a color from the video. t: Open HSV adjustment trackbars.
π Python 3.7+
π¦ Libraries: OpenCV, NumPy
This code was developed for use in RoboCup Soccer competitions, where robots need to:
β½ Detect and follow the ball.
π React dynamically to changes in lighting and environment.
This is a personal project initially created for RoboCup. Feel free to use or modify it for educational and non-commercial purposes.