Skip to content

This Python program uses OpenCV for real-time color-based image segmentation and filtering. It offers a graphical interface with trackbars to adjust HSV color channel ranges. It loads an image, applies the chosen color range as a mask, and displays the original image, HSV representation, mask, and filtered image in a stacked layout.

Notifications You must be signed in to change notification settings

sanjeewa999/HSV-Color-Detector-On-Images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HSV-Color-Detector-On-Images

Screenshot (27)

HSV Color Detecting with OpenCV

This Python project uses OpenCV to perform real-time color-based image segmentation and filtering. It provides a simple graphical interface with trackbars for adjusting the color range in terms of hue, saturation, and value (HSV). The program loads an image, applies the selected color range as a mask, and displays the original image, the HSV representation, the mask, and the filtered image in a stacked layout. Users can fine-tune the color filtering settings with the trackbars.

Features

  • Real-time color filtering using trackbars.
  • Visualization of the original image, HSV representation, color mask, and filtered result.
  • Interactive image editing for computer vision and image processing tasks.

Prerequisites

  • Python
  • OpenCV (cv2)
  • NumPy (numpy)

Getting Started

  1. Clone this repository to your local machine.
  2. Ensure you have Python and the required libraries installed.
  3. Ensure you have PyCharm.
  4. Install opencv-python library
  5. Run main.py

About

This Python program uses OpenCV for real-time color-based image segmentation and filtering. It offers a graphical interface with trackbars to adjust HSV color channel ranges. It loads an image, applies the chosen color range as a mask, and displays the original image, HSV representation, mask, and filtered image in a stacked layout.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages