Skip to content

EpitomeZied/Python-color-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Color Detection 🎨

Python OpenCV Status GitHub Repo

A Python-based color detection project that identifies and tracks colors in images or real-time video using OpenCV.
This project demonstrates computer vision fundamentals, image processing, and color space manipulation.

👤 Author: EpitomeZied
🔗 Repository: https://github.com/EpitomeZied/Python-color-detection


📌 Features

  • Detects specific colors in images or webcam video
  • Uses HSV color space for accurate detection
  • Real-time color tracking
  • Adjustable color ranges
  • Simple and beginner-friendly implementation

🧠 How It Works

  1. Captures image or video frames
  2. Converts frames from HSV color space
  3. Applies color masking
  4. Highlights detected colors on screen

This approach is commonly used in:

  • Object tracking
  • Image segmentation
  • Robotics vision systems

🛠 Requirements

  • Python 3.x
  • OpenCV
  • NumPy

Install dependencies

pip install opencv-python numpy

🚀 Quick Start

Clone the repository

git clone https://github.com/EpitomeZied/Python-color-detection.git
cd Python-color-detection

Run the script

python color_detection.py

(Replace color_detection.py with your actual script name if different)


🎮 Example Output

  • Original video feed
  • Mask showing detected color
  • Final output highlighting detected regions
Detecting color...
Color detected successfully!

📂 Project Structure

Python-color-detection/
├── color_detection.py   # Main detection script
├── README.md            # Project documentation
└── requirements.txt     # Dependencies (optional)

🔮 Future Improvements

  • GUI with sliders for HSV tuning
  • Support for multiple colors
  • Image file input support
  • Performance optimizations

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Open a Pull Request

📄 License

This project is open-source and available under the MIT License.


⭐ Support

If you find this project useful, please consider giving it a ⭐ on GitHub!

Made with ❤️ using Python & OpenCV by EpitomeZied

About

Color Detection with Python and OpenCV

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages