Simple image augmentation utility
Project description
AugX
AugX is a lightweight image augmentation utility for computer vision projects.
It provides a simple interface to generate multiple augmented image variants, as well as a dedicated sharpening function with adjustable intensity.
Features
- Horizontal flipping
- Gaussian blur
- Median blur
- Sharpening (standard + adjustable strength)
- High-pass enhancement
- Dilation & erosion
- Returns augmentations as a list for easy saving or training
Installation
pip install augx
Usage
Importing
import cv2
from augx import augment_image, display_images
Generate Multiple Augmentations
Load Image:
img = cv2.imread("sample.jpg")
To generate Augmented images:
augmented_images = augment_image(img)
for name, img in augmented_images:
cv2.imwrite(f"{name}.jpg", img)
To Display the images:
augmented_images = augment_image(img)
display_images(augmented_images)
Function Overview
augment_image(img)
Returns a list of augmented images, including:
- Original image
- Horizontally flipped
- Sharpened
- Gaussian blur applied
- Median blur applied
- High-pass filtered version
- Dilated image
- Eroded image
display_images(named_images)
Displays each augmented image one-by-one in a separate window, along with the name of the applied transformation.
License
Licensed under the MIT License.
See the full text in LICENSE.txt.
Author
Xopse
🌐 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 augx-0.2.0.tar.gz.
File metadata
- Download URL: augx-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137b467660336a6b1ba6e6d65a981baa407f3e359631b7d580c63c7261d7a7e5
|
|
| MD5 |
e92bd19850e21071dc44358cfc3cf646
|
|
| BLAKE2b-256 |
63763465318646f5c0e5b7d98854b0994f595beaab5ae207f5fd27069047e40f
|
File details
Details for the file augx-0.2.0-py3-none-any.whl.
File metadata
- Download URL: augx-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41fe190abf83b1fa0ae5dac67208e7b34378a1261fa830fcc9e78bc1bd2b5b01
|
|
| MD5 |
bbf85e16b7bd4e3f318550b66808a94c
|
|
| BLAKE2b-256 |
4717ab329594855837d4b6a6b475df71fa7c592aa53b59230e16c6f73a4c9839
|