Skip to content

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.

Notifications You must be signed in to change notification settings

alireza-py/OpenCV-ColorPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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:

    pip install opencv-python numpy
  2. Run the script:

    python main.py
  3. Use these keys for interaction:

    q: Quit the program.
    c: Pick a color from the video.
    t: Open HSV adjustment trackbars.
    

Requirements

🐍 Python 3.7+
πŸ“¦ Libraries: OpenCV, NumPy

Applications

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

This is a personal project initially created for RoboCup. Feel free to use or modify it for educational and non-commercial purposes.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages