UM-ARV HSV color space tuning tool for lane detection with YOLO integration
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arv_hsv_tuner-0.1.2.tar.gz.
File metadata
- Download URL: arv_hsv_tuner-0.1.2.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b896c56e91e9c7b3a629b1888efb9adf117b030dc3fdf2160265720298837e46
|
|
| MD5 |
aef79579c2d9e7e37eb9a23f00825b69
|
|
| BLAKE2b-256 |
f0d62f1ab05759bd4799b9841681fdd62f5ad5356405c44f5dd9f693e13b9584
|
File details
Details for the file arv_hsv_tuner-0.1.2-py3-none-any.whl.
File metadata
- Download URL: arv_hsv_tuner-0.1.2-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7fda875f4fb7affc48ccffdf1d1b4e845abb99d01a99027a9d335baf9459d2
|
|
| MD5 |
1b111fbb3d825b9310a2078b8a309f2d
|
|
| BLAKE2b-256 |
7a45a57bfae9e1ced9351bce3a01d701a4371f56b832a827f3be44036ecc6dc2
|