Skip to main content

A module for creating HSV color sliders using OpenCV

Project description

HSV Slider

HSV Slider is a Python module that provides an easy way to create HSV color sliders using OpenCV. It allows you to interactively adjust HSV (Hue, Saturation, Value) color ranges, which can be useful for various computer vision tasks such as color-based object detection.

Installation

You can install HSV Slider using pip:

pip install hsv-slider

Usage

Here's a basic example of how to use HSV Slider:

import cv2
from hsv_slider import create_hsv_slider, lower_bound_hsv, upper_bound_hsv

hsv_slider = create_hsv_slider()

while True:
    values = hsv_slider.get_values()
    lower_bound = lower_bound_hsv(values)
    upper_bound = upper_bound_hsv(values)

    # Use lower_bound and upper_bound in your image processing code

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hsv_slider-0.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file hsv_slider-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hsv_slider-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for hsv_slider-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69d622bcefa89cac1f6afb602c22ba9ce6bc2087dafa2ea20f973f0dabdb3850
MD5 ebac5e03f882f46af9d114917ce89fbc
BLAKE2b-256 57a981c2563ebae0448eb35c95660e93521cd14df62913fce567d78fe5223501

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page