πŸ“¦ nexapytech / raspberry-pi-color-detecting-robot

A Raspberry Pi–powered robot that detects and tracks colors in real time using Python and OpenCV, with both test mode (no hardware required) and live mode (Pi camera).

β˜… 0 stars β‘‚ 0 forks πŸ‘ 0 watching βš–οΈ Other
πŸ“₯ Clone https://github.com/nexapytech/raspberry-pi-color-detecting-robot.git
HTTPS git clone https://github.com/nexapytech/raspberry-pi-color-detecting-robot.git
SSH git clone git@github.com:nexapytech/raspberry-pi-color-detecting-robot.git
CLI gh repo clone nexapytech/raspberry-pi-color-detecting-robot
nexapytech nexapytech updated readme.md and ci ff00d60 6 days ago πŸ“ History
πŸ“‚ main View all commits β†’
πŸ“ .github
πŸ“ docs
πŸ“ screenshots
πŸ“ src
πŸ“ tests
πŸ“„ .gitignore
πŸ“„ LICENSE
πŸ“„ README.md
πŸ“„ requirements.txt
πŸ“„ README.md
CI

Raspberry Pi Color Detecting Robot

Demo Video: β–Ά Watch on YouTube Demo Image: Demo Image A Raspberry Pi–powered robot that detects and tracks colored objects in real time using Python and OpenCV. Designed with an SDK-style architecture.
Features
  • Real-time color detection using HSV color space
  • Raspberry Pi Camera and USB webcam support
  • SDK-style modular Python architecture
  • Live mode for real Raspberry Pi robot
  • Adjustable color calibration
  • Clean and extensible robotics codebase
  • Open-source friendly project structure

How It Works Processing Pipeline
  • Capture frame (camera / video / image)
  • Convert frame from BGR β†’ HSV
  • Apply color threshold (mask)

πŸŽ₯ Demo

Demo Video: β–Ά Watch on YouTube Demo Image: Demo Image
πŸ›  Tech Stack
  • Language: Python 3
  • Computer Vision: OpenCV
  • Numerical Computing: NumPy
  • Hardware Control: RPi.GPIO / gpiozero
  • Platform: Raspberry Pi OS
  • Testing: pytest
  • CI/CD: GitHub Actions

⚑ Quickstart

```bash

Clone the repository

git clone https://github.com/nexapytech/raspberry-pi-color-detecting-robot.git cd raspberry-pi-color-detecting-robot

(Optional) Create virtual environment

python3 -m venv venv source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Run in test mod

python src/main.py