Skip to main content

Augment line images for improving OCR datasets

Project description

LineAug

Augment line images for improving OCR datasets

CLI

usage: augment.py [-h] -i [IMAGES [IMAGES ...]] [-o OUTPUT] [-gt GROUND_TRUTH] [-n N] [-bg] [-e]

Augment OCR in the form of line images.

optional arguments:
  -h, --help            show this help message and exit
  -i [IMAGES [IMAGES ...]], --images [IMAGES [IMAGES ...]]
                        Path to line image(s).
  -o OUTPUT, --output OUTPUT
                        Output path where augmented images will be saved.
  -gt GROUND_TRUTH, --ground_truth GROUND_TRUTH
                        Extension of the ground truth text files. Will create new ground truth files for the augmented line images containing the existing ground truth for the associated
                        line (optional).
  -n N                  Number of augmented line image variants to create for each input.
  -bg, --background     Whether to add noise to the background of the line image.
  -e, --enumerate       Enumerate output file names instead of using input file names.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

lineaug-0.1.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file lineaug-0.1.tar.gz.

File metadata

  • Download URL: lineaug-0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for lineaug-0.1.tar.gz
Algorithm Hash digest
SHA256 d65d5c4c447483c633be452e66167b76da14bb978a382863e881006c85686072
MD5 f58658e53b59cb4fc9bca00b9af6eae2
BLAKE2b-256 19d6b58e0588d9d6ef9aa2e3115eb7d5fd91d56c45f0b3650de71ad6d5025cee

See more details on using hashes here.

Supported by

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