Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/quanglv1996/filter-color-hsv

The source code uses OpenCV to convert the RGB color channel to HSV, suitable for color filtering problems. The easy-to-use interface makes it easy to find suitable thresholds for different problems.
https://github.com/quanglv1996/filter-color-hsv

change-color image-processing opencv opencv2 python python3

Last synced: about 1 month ago
JSON representation

The source code uses OpenCV to convert the RGB color channel to HSV, suitable for color filtering problems. The easy-to-use interface makes it easy to find suitable thresholds for different problems.

Awesome Lists containing this project

README

        

# Changing Colorspaces with UI

## Description
The program provides a UI that makes it easy for users to use [OpenCV2's Changing ColorSpace feature](https://docs.opencv.org/4.x/df/d9d/tutorial_py_colorspaces.html) for object tracking. Help users find a rich color space with an intuitive interface. The program can be used with webcams, videos and images.

## Visuals
### Image of the interface at the beginning of the program

![Main UI](media/main.PNG "Main UI")

### Main function interface image

![Changing Colorspace UI Original](media/changing_colorspace.PNG)

![Changing Colorspace UI Mask](media/changing_mask.PNG)

## Installation
Clone repository
```bash
git clone https://gitlab.com/quanglvhust/changing-colorspaces-ui
cd changing-colorspaces-ui
```

Install environment
```pip
pip install -r requirements.txt
```

Run program
```python
python main.py
```

## Usage
Use the program to track the red object

Example

![image red obejct](media/red_object.jpg)

Program

![Original image](media/red.PNG)

Mask with values HSV Lower(0, 25, 48) - Upper(180, 255, 255)

![Mask](media/mask_red.PNG)

## Support
Any contributions please create issues. I will help as soon as possible