hsvpicker
Finding HSV bounding values for tracking/masking an object
How to find HSV bounding values to track or mask an object?.
This is the most common question as stated in opencv documentation. By using the hsvpicker we get a hsv bounding values by simply calling a function.
Overview:
We can get lower and upper bounding hsv values by clicking the left button of a mouse on an image for which object we want to track or mask.
Usage:
Getting it:
To download hsvpicker, either fork this github repo or simply use Pypi via pip.
$ pip install hsvpicker
Using it:
STEP 1: import hsvpicker package
from hsvpicker.hsv import HSV
STEP 2: Create an object
bound = HSV('pass the image url')
STEP 3: Getting a HSV value
bound.get_value()
Image will display here, you will choose color by simply double clicking the mouse's left button on an image and then it finds hsv values of the respected color .(i.e The color which we want to track or mask). PRESS q to quit the window.
STEP 4 : Getting a bounding values
lower_bound,upper_bound = bound.get_boundings(h = 20,s = 50,v = 60)
You can fine tune color boundings by using h,s and v. Default values of h,s, and v are 20,50,60 respectively. This function returns numpy.ndarray.
Metadata
Release files for hsvpicker 4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hsvpicker-4.0.tar.gz | 2.9 kB | Without provenance | Details |
Release files / hsvpicker-4.0.tar.gz
| Download URL | hsvpicker-4.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31d5a47b85148613510cbef670c84de8bcaeb9e6dcceacb7563ba4cdc0288f75
|
|
BLAKE2b-256 checksum How to use checksums |
b186429d5912674b0f1cc9db77f352b08f0b4c1db6a353b182fd3f2d6a002142
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for hsvpicker 4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.