Skip to main content

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

from augx import augment_image, sharpen_image

img = cv2.imread("sample.jpg")

Generate Multiple Augmentations

To generate different 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

augx-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

augx-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file augx-0.1.0.tar.gz.

File metadata

  • Download URL: augx-0.1.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

Hashes for augx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6e2f7d847ced99a97a27be12225776f942941560ba04e4eaa7455b36f715739
MD5 3bea8338dfe57086e542ba8301ebfac1
BLAKE2b-256 c9b1ba6e047eb0dac80468963692fafc60a9d2d6f0bfcfcdab1ec1a5fba40bf6

See more details on using hashes here.

File details

Details for the file augx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: augx-0.1.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

Hashes for augx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2af6e5ed0a0edf464f1839a90b897e11d9b27a2a63863251a7fcf7ad287fde59
MD5 0593e9207b0abc0854aedea366f2f870
BLAKE2b-256 9287a5d2e0b17172f447ff3229641293cbad8cc51407903b3bbe9d4b09f4e62e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page