Skip to main content

A customizable image augmentation tool for object detection

Project description

BoXnLabelS

BoXnLabelS is a Python package for easy and customizable image augmentation, designed to generate augmented images and adjust their corresponding bounding box labels for deep learning models.

Installation

Install via pip:

pip install BoXnLabelS

Quick Start

import BoXnLabelS as bls

# Initialize the augmentation object
augmentor = bls.Image_Custom_Augmentation(
    SP_intensity=0.2,  # Salt & Pepper noise intensity
    CWRO_Key=20,       # Clockwise rotation in degrees
    CCWRO_Key=20,      # Counterclockwise rotation in degrees
    Br_intensity=True, # Brightness adjustment
    H_Key=True,        # Horizontal flip
    V_Key=True,        # Vertical flip
    HE_Key=True,       # Histogram equalization
    GaussianBlur_KSize=5,  # Gaussian blur kernel size
    Random_Translation=True,  # Random translation
    Scaling_Range=(0.75, 1.25),  # Scaling range (min, max)
    Img_res=540  # Image resolution
)

# Apply augmentations to a dataset
augmentor.Generate_Data(input_path="input_directory", output_path="output_directory")

Features

  • Noise Addition: Salt & Pepper Noise
  • Image Enhancements: Histogram Equalization, Brightness Adjustment
  • Transformations: Rotation, Flipping, Translation, Scaling
  • Blurring: Gaussian Blur
  • Bounding Box Handling: Automatic YOLO format adjustment

More to come ...


Vis

Notes

  • The module is under active development.
  • Accepts images in JPG format only.
  • Handles both labeled images (with bounding boxes) and unlabeled background images.

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

BoXnLabelS-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

BoXnLabelS-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BoXnLabelS-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.7

File hashes

Hashes for BoXnLabelS-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09e82acdb9052dbb301b45bef6fdb1a0a4746e0d5814a412887eaa76bdcc21c7
MD5 a4feeda7637c6f4cc36a1d7c675959fd
BLAKE2b-256 699984b18d06ec2d3fbfd3ddad56b1e6044c9c12b60ea8777d4448bc7db972dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BoXnLabelS-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.7

File hashes

Hashes for BoXnLabelS-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 643cb51f8294be9094872ee269d940fa6cd3f9582a6c1df106b6945c0555c359
MD5 060f8b0a9a1e8fafa13be762fe081ea1
BLAKE2b-256 3f282219fcbfe66cc25cbfa35e0b68f664f0daff3216b49ca667451e00c746cb

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