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.3.tar.gz (12.8 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.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Augraphy-1.0.3.tar.gz
  • Upload date:
  • Size: 12.8 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.3.tar.gz
Algorithm Hash digest
SHA256 798d5c74c6c0d2f273247b84806955e27f32448e3ba75f444d96f3f79c1796d4
MD5 313f43665696eb498e67c519b7625609
BLAKE2b-256 a4e5ec21196a754f516c039032b8e21d9b15a19428fb3704b03c2c710273acc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Augraphy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5148aeba14d05b5f6e4e4864c0de38265c064c356f237ec97a6b090ddb0199c3
MD5 43c3e753e63f95c657fa8bf34585825d
BLAKE2b-256 ce7fbb4393f0105379a65c5917ce08bc67b155f11e2f20f36b0fc806fdcf7ee9

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