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
- 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
- Captures image or video frames
- Converts frames from HSV color space
- Applies color masking
- Highlights detected colors on screen
This approach is commonly used in:
- Object tracking
- Image segmentation
- Robotics vision systems
- Python 3.x
- OpenCV
- NumPy
pip install opencv-python numpygit clone https://github.com/EpitomeZied/Python-color-detection.git
cd Python-color-detectionpython color_detection.py(Replace color_detection.py with your actual script name if different)
- Original video feed
- Mask showing detected color
- Final output highlighting detected regions
Detecting color...
Color detected successfully!
Python-color-detection/
├── color_detection.py # Main detection script
├── README.md # Project documentation
└── requirements.txt # Dependencies (optional)
- GUI with sliders for HSV tuning
- Support for multiple colors
- Image file input support
- Performance optimizations
Contributions are welcome!
- Fork the repository
- Create your feature branch
- Commit your changes
- Open a Pull Request
This project is open-source and available under the MIT License.
If you find this project useful, please consider giving it a ⭐ on GitHub!
Made with ❤️ using Python & OpenCV by EpitomeZied