Skip to main content

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-python
  • albumentations
  • tqdm

๐Ÿš€ Usage

๐Ÿงฐ Supported Tools

Currently available tool:

  • augment: Perform brightness and contrast augmentation on image datasets with YOLO-style .txt labels.

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 .txt label 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-python
  • albumentations
  • tqdm

๐Ÿ“ 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


Download files

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

Source Distribution

hieuvision-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

hieuvision-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for hieuvision-0.2.0.tar.gz
Algorithm Hash digest
SHA256 860552881ec7e360d54a8254e434e645df7507966e9c60748d431904053a8475
MD5 36d3a6700b7fd3202030733228872372
BLAKE2b-256 a9f9ad2acf1c389400c47babc36e27a3d01eabdb7df85961630959811a97a066

See more details on using hashes here.

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

Hashes for hieuvision-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb91943889462324fd4464d78f896a347290342c54a7c5175691b1afd567ad1c
MD5 21cfc9bbb8fcb3c16c8932ffed630673
BLAKE2b-256 4b39aab9895231862771d497f5a2e3cfad5d48918c8b6a9c49ee4627e33a3dc8

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