Skip to main content

Augmentation pipeline for rendering synthetic paper printing and scanning processes

Project description

Augraphy

Augmentation pipeline for rendering synthetic paper printing and scanning processes

pdf417decoder is a pure Python library for decoding PDF417 barcodes.

Installation

Use the package manager pip to install augraphy.

pip install augraphy

Usage

from Augraphy import AugraphyPipeline

img = cv2.imread("test.png")
pipeline = AugraphyPipeline()
crappified, original = pipeline.crappify(img, rotate=False)

You can also enable debugging mode by setting the debug=True argument.

pipeline = AugraphyPipeline(debug=True)

This will use cv2.imshow for each image transformation or cv2_imshow if running in Google Colab.

Roadmap

  • Ink effects (Bleed/Dusty/Low)
  • Paper textures (Generated/Images)
  • Scanner effects (Scanlines/Brightness Gradients)
  • Improved Configuration capabilities

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Copyright 2021 Sparkfish LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

Augraphy-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

Augraphy-1.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file Augraphy-1.0.0.tar.gz.

File metadata

  • Download URL: Augraphy-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

File hashes

Hashes for Augraphy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 50aab4c40ed4bc0717465038c0cfd6835f452cb2f79017cd9dbd81d40ce9c052
MD5 44afded81a6d6a0bbb5d284adca8b978
BLAKE2b-256 a6d8ee4265cc131a546469ed19f1e41405d9691d41a1f6fa49b47f375f020aaf

See more details on using hashes here.

File details

Details for the file Augraphy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: Augraphy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

File hashes

Hashes for Augraphy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d854aaa01d222c2b6162926e2fd3b69b358ba2d483fd2db6dca4b4f25e2f02d3
MD5 31748ad9e4d81dd72f1d7cfc2494c4f4
BLAKE2b-256 2500bc90cbaeab69bb116ea10c037f68d0dbfdfa31f0d61ccde0b43007c71246

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