Skip to content

This is used to detect color in Images , based on that we can adjust HSV Values and Get Final Image

Notifications You must be signed in to change notification settings

MYaswanth28/Color_detection_on_images

Repository files navigation

First Image

Output Image-3

Second Image

Output Image-2

Third Image

Output Image-1

Color Detection on Images

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.

Features

  • 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.

Installation

  1. Clone this repository to your local machine.
  2. Make sure you have Python and OpenCV installed.
  3. Keep Path of Image Correctly

Prerequisites

  • Python 3.x
  • OpenCV
  • Numpy

Usage

  1. 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.
  2. Adjust the trackbars to select the desired color range.
  3. The program will display the original image, HSV image, color mask, and the resulting filtered image in real-time.
  4. Experiment with different color ranges to observe the color detection results.

Acknowledgements

Special thanks to the OpenCV and Python communities for providing the tools and resources to build this project.

Contributing:

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.

Disclaimer:

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.

About

This is used to detect color in Images , based on that we can adjust HSV Values and Get Final Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published