Skip to main content

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

You can install the package using pip:

pip install CVAugmentor

Usage

For a detailed usage guide, please refer to the documentation.

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", process_type="single", mode="singular", augmentations=augmentations, aug_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", process_type="single", mode="singular", augmentations=augmentations, aug_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", process_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", process_type="batch", mode="singular", augmentations=augmentations, verbose=True, warn_verbose=True)

License

This work is under an MIT License.

Metadata

Release files for cvaugmentor 1.0.12

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

Source distribution (sdist)

Source distribution for cvaugmentor 1.0.12
File Size Uploaded
CVAugmentor-1.0.12.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cvaugmentor 1.0.12
File Interpreter ABI Platform
CVAugmentor-1.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 24.9 kB

Release files / CVAugmentor-1.0.12.tar.gz

Download URL CVAugmentor-1.0.12.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6c01d66bcbd956f8425a249515a30c20be9e273709d5fc4f8698f6e42f42f14
BLAKE2b-256 checksum
How to use checksums
68bd5f5897e395559cab44ca5cd97e8f01b47702db164c64f26fa30ce47a6a9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / CVAugmentor-1.0.12-py3-none-any.whl

Download URL CVAugmentor-1.0.12-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
938d8b13a300eb0b86a9dc4b8df5d87a310546d359edb2e2299d7f7a22b6d6b8
BLAKE2b-256 checksum
How to use checksums
d9c25c9e432bd66b38ff5351915f635c1d9391ab372e34d4268f1146ffe6a59a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

2.0.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

This release

1.0.12 This release

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

2 release files

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