A lightweight image augmentation package
Project description
Image Augmentation Library
Created by Dylan Tran
This library is implements an image processing and augmentation pipeline for model training purposes. It has a few key features:
Geometric Augmentation
- From one image, various rotations and reflections are applied to generate additional images.
- Transformations include 90, 180, and 270 degree rotation, as well as reflection across x and y axes.
Rectangular Patch Augmentation
- This type of transformation occludes part of an original image for use with unet segmentation/prediction models. This is useful in cases where the ground truth is known, and pairs of incomplete/complete images are needed for training.
- Rectangle generation is random, meaning that the user can specify how many images can be generated from one source image.
- The color of the rectangular patch can be modified. In this case, it is white for display purposes.
Contrast Adjustment
- This image processing step increases contrast between pixels, making features more visually apparent.
Example usage:
- Note that, when possible, the pipe-and-filter style is implemented.
- This also means that various augmentations can be mixed and matched to vastly increase the training data.
imageArr = readImageDirIntoArr(r"C:\Augmentation\test_images\msk_3_7")
startIdx = 0
for augArr in rectangleCrop(imageArr, 5):
saveOutputs(r"C:\Augmentation\sample_output", augArr, startIdx)
startIdx += len(augArr)
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 image_model_augmentation_library-0.2.0.tar.gz.
File metadata
- Download URL: image_model_augmentation_library-0.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4736a7b8a27c6102cd02d077670b85fc0171182073181ec7f06df50b6c76810
|
|
| MD5 |
9832ad4041289cb2ec99b4a799d74b93
|
|
| BLAKE2b-256 |
98bd82d15c52e33414d02b1430602d0ee6f8c94c074b2352c5c6b5726a3d58b1
|
File details
Details for the file image_model_augmentation_library-0.2.0-py3-none-any.whl.
File metadata
- Download URL: image_model_augmentation_library-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0ca9a9895e2f53400052c23f6344e6a1298e704ab424ceedb435c2c49f310c8
|
|
| MD5 |
785a716737bd36968fbe10b2cf965892
|
|
| BLAKE2b-256 |
e58eb3ed394e2a376c5303a749cd8793b344eccc07badf86f149710ebf68ae8a
|