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.

Turn an image like this:

Original Image

Into an image like this:

Augmented Image

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.1.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.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Augraphy-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5d0e1861aaccac381b009a1ba3ddcda8d533ac088e8c354ebd0d398941503717
MD5 1cd583918480e65f770946e7e184ab0e
BLAKE2b-256 3d0b4bfd0814692bde3287abd5e5d25dec3e21f8207167397b41157870e6bfb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Augraphy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d9bfb98873021084aa531bc59721e626430745a4c745104f007598d03686a89
MD5 1f5b2f2bd7f743cd46c4081fb11ca832
BLAKE2b-256 9d4321d40b4d80d8c655a6ba1deb1cf35db6b22fa7d07f334df50e5cf89ea818

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