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

https://github.com/trflorian/opencv-hsv-filter

Segment an image based on an HSV filter with sliders for threshold
https://github.com/trflorian/opencv-hsv-filter

color-filter computer-vision gui hsv opencv opencv-python python slider trackbar

Last synced: about 1 month ago
JSON representation

Segment an image based on an HSV filter with sliders for threshold

Awesome Lists containing this project

README

          

# OpenCV HSV Filter

This project shows how to use OpenCV Python trackbars / sliders to tune thresholds for an HSV color filter.

![cover](media/cover.png)

## Requirements

The only requirement is `opencv-python` in the `requirements.txt` file.
Run `pip install -r requirements.txt` to install the dependency.

## Quickstart

Run `python main.py` to start the GUI sample with the flower image.

![sample](media/sample.png)

## Trackbar Sample Code

Checkout the `trackbar_explicit.py` and `trackbars_from_array.py` for alternative sample code to setup the trackbars