Image Augmentation Tool
Project description
Image Augmentation Package
Overview
This package provides a set of functions for image augmentation using various techniques. Users can integrate these functions into their projects to preprocess images for machine learning tasks or other applications.
Features
- Image Augmentation Functions: Includes functions for flipping, rotating, shearing, cropping, blurring, adjusting exposure, adding noise, and more.
- Flexible Integration: Functions can be used individually or combined based on user requirements.
- Output Options: Generates augmented images in a specified output directory, with options to create ZIP or TAR.GZ archives.
Installation
To install the package, you can use pip:
pip install amplifyy==0.0.1
Usage
Example Usage
from amplifyy import (
get_custom_augmented_images,
get_augmentation_descriptions,
apply_all_augmentations,
create_zip,
create_tar_gz_with_timestamp
)
input_dir = 'path/to/input/directory'
output_dir = 'path/to/output/directory'
# Display available augmentations with their descriptions
augmentation_descriptions = get_augmentation_descriptions()
for method, description in augmentation_descriptions.items():
print(f'{method}: {description}')
# User selects augmentation methods based on the provided descriptions
user_choices = [1, 2, 3, 4, 5] # Example choices
# Apply specific augmentations
get_custom_augmented_images(input_dir, output_dir, user_choices)
# Apply all augmentations
apply_all_augmentations(input_dir, output_dir)
# Create a zip file of augmented images
create_zip('augmented_images.zip', output_dir)
# Create a tar.gz file of augmented images with a timestamp
create_tar_gz_with_timestamp(output_dir)
Functions
-
get_augmentation_descriptions(): Returns all augmentation options that can be select by user. -
get_custom_augmented_images(input_dir, output_dir, user_choices): Applies selected augmentations to images ininput_dirand saves augmented images tooutput_dir. -
apply_all_augmentations(input_dir, output_dir): Applies all available augmentations to images ininput_dirand saves them tooutput_dir. -
create_zip(zip_filename, output_dir): Creates a ZIP archive containing augmented images fromoutput_dir. -
create_tar_gz_with_timestamp(output_dir): Creates a TAR.GZ archive with a timestamp containing augmented images fromoutput_dir.
Additionally, we have a special command that you can run after installing the package:
amplifyy
What it does is a secret, so try it out and see for yourself!
License
This project is licensed under the License - see the LICENSE file for details.
Acknowledgments
- The script uses the Pillow and OpenCV libraries for image processing.
- Image augmentation functions are adapted from common techniques used in data augmentation for computer vision.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your enhancements.
Support
For any questions or issues, please open an issue on GitHub.
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 amplifyy-0.1.tar.gz.
File metadata
- Download URL: amplifyy-0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08fcc22fa9d5d62b86c3fcf32daf9f5e05c11a61c7c0178116c1f9d3f06c1aaf
|
|
| MD5 |
3925e4c1818f85ed61b7127cb7ef6c96
|
|
| BLAKE2b-256 |
2e1900652249c72b6358f4d4899003d9a586157ab7a776b41151b260ba296548
|
File details
Details for the file amplifyy-0.1-py3-none-any.whl.
File metadata
- Download URL: amplifyy-0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
319054294d2d50d67a30e211c3cdd1d1c8272c4ddf043f0648749b854c2d9c5e
|
|
| MD5 |
d5d49c5d4c27250df49e0f1ec48aa3cb
|
|
| BLAKE2b-256 |
eb2cd683b0bdf719f68721fd11787a39984b12aa1f928f4501a17649fd9122a2
|