This project is a simple color detection program implemented using OpenCV and Python. It allows users to interactively select a color range using trackbars and filter that color from an image in real-time. The filtered image will show only the selected color, while other colors will be displayed in grayscale.
- Real-time color detection and filtering.
- Interactive GUI with trackbars to adjust color range.
- Visual feedback with original image, HSV image, color mask, and filtered result.
- Clone this repository to your local machine.
- Make sure you have Python and OpenCV installed.
- Keep Path of Image Correctly
- Python 3.x
- OpenCV
- Numpy
- Upon running the script, a window named "TrackBars" will open, showing six trackbars for Hue Min, Hue Max, Saturation Min, Saturation Max, Value Min, and Value Max.
- Adjust the trackbars to select the desired color range.
- The program will display the original image, HSV image, color mask, and the resulting filtered image in real-time.
- Experiment with different color ranges to observe the color detection results.
Special thanks to the OpenCV and Python communities for providing the tools and resources to build this project.
Contributions to this repository are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is intended for educational and demonstrative purposes only. The accuracy of face detection may vary based on image quality and the classifier used. The developers are not responsible for any misuse or inappropriate use of the code or its results.