https://github.com/alireza-py/opencv-colorpicker
TheBall class is a real-time object detection and tracking system developed for RoboCup Soccer competitions. It uses OpenCV and the HSV color space to track objects like the soccer ball, with interactive color adjustments for dynamic environments.
https://github.com/alireza-py/opencv-colorpicker
colorpicker opencv python robocup-junior robotics
Last synced: 2 months ago
JSON representation
TheBall class is a real-time object detection and tracking system developed for RoboCup Soccer competitions. It uses OpenCV and the HSV color space to track objects like the soccer ball, with interactive color adjustments for dynamic environments.
- Host: GitHub
- URL: https://github.com/alireza-py/opencv-colorpicker
- Owner: alireza-py
- Created: 2024-03-29T11:53:29.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-15T21:18:03.000Z (7 months ago)
- Last Synced: 2025-01-31T16:52:59.797Z (4 months ago)
- Topics: colorpicker, opencv, python, robocup-junior, robotics
- Language: Python
- Homepage:
- Size: 32.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **TheBall - Color-Based Object Detection for RoboCup Soccer**
## Overview
**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.## Features
- 🔍 **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**.## Quick Start
1. Install dependencies:
```bash
pip install opencv-python numpy
```
2. Run the script:
```bash
python main.py
```3. Use these keys for interaction:
```plaintext
q: Quit the program.
c: Pick a color from the video.
h: Open HSV adjustment trackbars.
```## Requirements
```plaintext
🐍 Python 3.7+
📦 Libraries: OpenCV, NumPy
```## Applications
```plaintext
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.
```## 📜 License
```plaintext
This is a personal project initially created for RoboCup. Feel free to use or modify it for educational and non-commercial purposes.
```