A modular computer vision toolkit with augmentation and more.
Project description
hieuvision
A modular computer vision toolkit with built-in data augmentation and extensible tools.
๐ฆ Installation
To install the latest version from PyPI:
pip install hieuvision
This will also install all necessary dependencies:
opencv-pythonalbumentationstqdm
๐ Usage
๐งฐ Supported Tools
Currently available tool:
augment: Perform brightness and contrast augmentation on image datasets with YOLO-style.txtlabels.
More tools will be added in future updates.
โจ Example: Image Augmentation
Assume your dataset is structured like this:
dataset/
โโโ image1.jpg
โโโ image1.txt
โโโ image2.jpg
โโโ image2.txt
...
You can apply augmentation using:
from hieuvision import HieuVision
from hieuvision.tools.augmenter import ImageAugmenter
augmenter = ImageAugmenter(
input_dir="dataset",
output_dir="dataset_augmented"
)
hv = HieuVision()
hv.add_tool("augment", augmenter)
hv.run_tool("augment")
What this does:
- Applies random brightness and contrast adjustments to each image.
- Saves the augmented image in the output directory.
- Copies corresponding YOLO
.txtlabel files. - Logs a warning if any label or image is missing.
๐ง Developer Guide
Extend with custom tools
You can register your own tools in HieuVision:
class MyCustomTool:
def run(self):
print("Running my custom tool")
tool = MyCustomTool()
hv = HieuVision()
hv.add_tool("custom", tool)
hv.run_tool("custom")
Each tool must implement a .run() method.
๐ Requirements
These are installed automatically via pip install hieuvision:
opencv-pythonalbumentationstqdm
๐ Project Structure (for developers)
hieuvision/
โโโ hieuvision/
โ โโโ __init__.py
โ โโโ core.py
โ โโโ tools/
โ โโโ __init__.py
โ โโโ augmenter.py
โโโ README.md
โโโ pyproject.toml
โโโ LICENSE
โโโ .github/
โโโ workflows/
โโโ publish.yml
๐ License
MIT License ยฉ 2025 Hieu Nguyen
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 hieuvision-0.2.0.tar.gz.
File metadata
- Download URL: hieuvision-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860552881ec7e360d54a8254e434e645df7507966e9c60748d431904053a8475
|
|
| MD5 |
36d3a6700b7fd3202030733228872372
|
|
| BLAKE2b-256 |
a9f9ad2acf1c389400c47babc36e27a3d01eabdb7df85961630959811a97a066
|
File details
Details for the file hieuvision-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hieuvision-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb91943889462324fd4464d78f896a347290342c54a7c5175691b1afd567ad1c
|
|
| MD5 |
21cfc9bbb8fcb3c16c8932ffed630673
|
|
| BLAKE2b-256 |
4b39aab9895231862771d497f5a2e3cfad5d48918c8b6a9c49ee4627e33a3dc8
|