Skip to main content

ARV HSV Tuner

by Matthew Gawthrop

Algorithm description

Utilizes hsv filtering and YOLO ML models to gain a consistent occupancy grid of mainly lane line, potholes, and traffic barrels.

hsv.py is designed to be used as a library, meaning the file is meant to be copied into other projects and then imported into a file for use from hsv import hsv. Each object of the hsv class is tied to a video path. This video path is not only used for saving of hsv filtering values but also is directly used for streaming video during tuning.

Tuning

Reference demo.py for a look at the functionality with tuning.

You must first create an object with the video path that you want to tune for (examples/hsv_data_template.json). Then by calling hsv_obj.tune(mask_name) you can slide the sliders back and forth until you reach the mask you want. Finally, slide the "Done Tuning" slider and the values will be saved in <your_defined_hsv_name>.json. You can do this over and over with new mask_names to get a whole suite of masks that are connected to one video path. Change the video path on construction of the object and you can create a new set of masks for that video too.

Once you have completed all your tuning, use get_mask(frame) to get the individual and combined masks you tuned for.

Getting Occ Grids

Use combined, mask_dictionary = get_mask(frame) which will return a 2D numpy array of all combined masks that have been tuned for this object. It also returns a dictionary which maps from mask_name -> occ grid which can be used to get just one colors occupancy grid at a time.

Metadata

Release files for arv-hsv-tuner 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arv-hsv-tuner 0.1.2
File Size Uploaded Provenance Actions
arv_hsv_tuner-0.1.2.tar.gz 28.9 kB Without provenance Details for arv_hsv_tuner-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arv-hsv-tuner 0.1.2
File Interpreter ABI Platform Actions
arv_hsv_tuner-0.1.2-py3-none-any.whl Python 3 none any Details for arv_hsv_tuner-0.1.2-py3-none-any.whl

Total release size: 58.2 kB

Release files / arv_hsv_tuner-0.1.2.tar.gz

Download URL arv_hsv_tuner-0.1.2.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b896c56e91e9c7b3a629b1888efb9adf117b030dc3fdf2160265720298837e46
BLAKE2b-256 checksum
How to use checksums
f0d62f1ab05759bd4799b9841681fdd62f5ad5356405c44f5dd9f693e13b9584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Release files / arv_hsv_tuner-0.1.2-py3-none-any.whl

Download URL arv_hsv_tuner-0.1.2-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b7fda875f4fb7affc48ccffdf1d1b4e845abb99d01a99027a9d335baf9459d2
BLAKE2b-256 checksum
How to use checksums
7a45a57bfae9e1ced9351bce3a01d701a4371f56b832a827f3be44036ecc6dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Security for arv-hsv-tuner 0.1.2

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page