CVAugmentor
Introduction
This is a simple tool to augment images and videos for computer vision tasks.
Available augmentations are: no_augmentation, flip, zoom, rotate, shear, grayscale, hue, saturation, brightness, exposure, blur, noise, cutout, negative,
Installation
pip install CVAugmentor
Usage
Single Image Augmentation
# Importing the libraries
from CVAugmentor import Augmentations as aug
from CVAugmentor import Pipeline
# Define the augmentations
augmentations = {
"zoom": aug.zoom(),
"flip": aug.flip(),
}
# Create a Pipeline object
p = Pipeline()
# Augment the image
p.augment(input_path="path/to/input_image", output_path="path/to/output_image", target="image", type="single", mode="singular", augmentations=augmentations, verbose=True, warn_verbose=True)
Single Video Augmentation
# Importing the libraries
from CVAugmentor import Augmentations as aug
from CVAugmentor import Pipeline
# Define the augmentations
augmentations = {
"zoom": aug.zoom(),
"flip": aug.flip(),
}
# Create a Pipeline object
p = Pipeline()
# Augment the video
p.augment(input_path="path/to/input_video", output_path="path/to/output_video", target="video", type="single", mode="singular", augmentations=augmentations, verbose=True, warn_verbose=True)
Augmenting Multiple Images
# Importing the libraries
from CVAugmentor import Augmentations as aug
from CVAugmentor import Pipeline
# Define the augmentations
augmentations = {
"zoom": aug.zoom(),
"flip": aug.flip(),
}
# Create a Pipeline object
p = Pipeline()
# Augment the images
p.augment(input_path="path/to/input_images", output_path="path/to/output_images", target="image", type="batch", mode="singular", augmentations=augmentations, verbose=True, warn_verbose=True)
Augmenting Multiple Videos
# Importing the libraries
from CVAugmentor import Augmentations as aug
from CVAugmentor import Pipeline
# Define the augmentations
augmentations = {
"zoom": aug.zoom(),
"flip": aug.flip(),
}
# Create a Pipeline object
p = Pipeline()
# Augment the videos
p.augment(input_path="path/to/input_videos", output_path="path/to/output_videos", target="video", type="batch", mode="singular", augmentations=augmentations, verbose=True, warn_verbose=True)
License
This work is licensed under an MIT License.
Metadata
Release files for cvaugmentor 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| CVAugmentor-0.0.1.tar.gz | 11.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CVAugmentor-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / CVAugmentor-0.0.1.tar.gz
| Download URL | CVAugmentor-0.0.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6324e1ea397adc69fb440fc271debb63b54e9cb75b13eb0481454877060f5817
|
|
BLAKE2b-256 checksum How to use checksums |
dbbc83aaf300b0c49312a1e2fe951103a60f455c83b1ac66cbb2e9d801ea60dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / CVAugmentor-0.0.1-py3-none-any.whl
| Download URL | CVAugmentor-0.0.1-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db524cd0692fe5a2a2542f49dd28012d7561f42a32282ce39400028a2d8a143d
|
|
BLAKE2b-256 checksum How to use checksums |
f777a25116918cdb6b98d217cd0f69f1c4b17dbab403291e4d82f290cbc2c2fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|