Skip to content

A Streamlit-based application for detecting and segmenting specific colors (rgb) in images using HSV color space.

License

Notifications You must be signed in to change notification settings

pabs-code/hsv-colorseg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSV Color Segmentation

A Streamlit-based application for detecting and segmenting specific colors in images using HSV color space.


Table of Contents


About the Project

Color Segmentation App is a simple yet powerful Streamlit application that allows users to upload an image and detect segments of specific colors (Red, Green, Blue) using the HSV color space. The app is ideal for learning about image processing and OpenCV.

This project is designed to be easy to use, educational, and extendable for more advanced color detection or segmentation tasks.


Features

  • Upload images in JPG, JPEG, or PNG format.
  • Detect and display segments of Red, Green, and Blue colors in the image.
  • Visualize the original image alongside segmented color regions.
  • Built with Streamlit, OpenCV, and NumPy for performance and clarity.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed:


Installation

  1. Clone the repository:

    git clone https://github.com/your-username/hsv-colorseg.git
  2. Navigate to the project directory:

    cd hsv-colorseg
  3. Install the required dependencies:

    pip install streamlit opencv-python numpy

Running Script

  1. Run the Streamlit app:

    streamlit run app.py
  2. A new browser window will open with the Color Segmentation App.

  3. Use the file uploader to select an image (JPG, JPEG, or PNG).

  4. The app will display:

    • The original image.
    • Segmented images for Red, Green, and Blue.

Expectations When Running This App

Feature Description
Image Upload Users can upload images in JPG, JPEG, or PNG format.
Color Detection The app detects segments of Red, Green, and Blue using HSV color space.
Visualization Segmented images are displayed alongside the original image for comparison.
User-Friendly Interface Built with Streamlit, it provides a simple and interactive experience.

Demo

video-demo.mp4

Acknowledgments


License

This project is licensed under the MIT License — see the LICENSE file for details.


About

A Streamlit-based application for detecting and segmenting specific colors (rgb) in images using HSV color space.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages