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

Uploaded Python 3

File details

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

File metadata

  • Download URL: Augraphy-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 dedb2dc58b56d19df0c3a8f903d9134168a856b924d9d7537ad6b047a6c8bc96
MD5 b311299fe2aa23520f70275264130e8f
BLAKE2b-256 e4083e792534904679b2b5cb4e22db88c30a222673a7ef4c2fde138182a9ab8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Augraphy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37911644706b74c5ae6aec5024521b2f853471a637463c4efd0e9f00a42b3de0
MD5 38a8a21e90e48a725ffd3b096feff941
BLAKE2b-256 f93bbf7d1658b6149ccd86056c040b9ac3874afd8bb1a1883f23a5ba2f36c25b

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