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
- Host: GitHub
- URL: https://github.com/trflorian/opencv-hsv-filter
- Owner: trflorian
- License: mit
- Created: 2024-06-11T20:42:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T22:58:53.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T15:42:01.636Z (over 1 year ago)
- Topics: color-filter, computer-vision, gui, hsv, opencv, opencv-python, python, slider, trackbar
- Language: Python
- Homepage: https://medium.com/@flip.flo.games/opencv-python-sliders-visual-threshold-tuning-9a448907c349
- Size: 1.3 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

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

## Trackbar Sample Code
Checkout the `trackbar_explicit.py` and `trackbars_from_array.py` for alternative sample code to setup the trackbars