Skip to content

Raghava00001/Color_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Real-Time Color Detection with OpenCV

This project is a fun beginner-friendly computer vision tool that detects the dominant color of objects you hold in front of your webcam. Instead of showing raw RGB values, it gives the actual color name (like red, blue, black, or pink). If nothing is detected, it smartly responds with β€œYou are not holding anything.” Each detection is also logged into a color_report.txt file with timestamps.


✨ Features

  • Real-time webcam-based color detection
  • Converts RGB values into human-readable color names
  • Ignores background, focusing only on the object you hold
  • Generates a timestamped report of detections
  • Beginner-friendly and easy to run

πŸš€ Installation & Usage

git clone https://github.com/yourusername/color-detection-opencv.git
cd color-detection-opencv
pip install opencv-python numpy scikit-learn webcolors
python color_detection.py

About

This project uses OpenCV and Python to detect the dominant color of objects you hold in front of a webcam. Instead of raw RGB values, it shows the actual color name (like red, blue, or black) and logs results with timestamps. If nothing is held, it responds accordingly, making computer vision fun and beginner-friendly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages