معرفی شرکت ها


augraphy-8.2.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Augmentation pipeline for rendering synthetic paper printing and scanning processes
ویژگی مقدار
سیستم عامل -
نام فایل augraphy-8.2.3
نام augraphy
نسخه کتابخانه 8.2.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sparkfish LLC
ایمیل نویسنده packages@sparkfish.com
آدرس صفحه اصلی https://github.com/sparkfish/augraphy
آدرس اینترنتی https://pypi.org/project/augraphy/
مجوز -
<p align="center"> <img src="https://github.com/sparkfish/augraphy/blob/dev/images/logo/augraphy.png?raw=true" width="600" title="Augraphy Logo"> </p> Augraphy is a Python library that creates multiple copies of original documents though an augmentation pipeline that randomly distorts each copy -- degrading the clean version into dirty and realistic copies rendered through synthetic paper printing, faxing, scanning and copy machine processes. Highly-configurable pipelines apply adjustments to the originals to create realistic old or noisy documents by acting as a factory, producing almost an infinite number of variations from their source. This simulation of realistic paper-oriented process distortions can create large amounts of training data for AI/ML processes to learn how to remove those distortions. Treatments applied by Augraphy fabricate realistic documents that appear to have been printed on dirty laser or inkjet printers, scanned by dirty office scanners, faxed by low-resolution fax machines and otherwise mistreated by real-world paper handling office equipment. # What makes Augraphy Magical? Virtually no readily available datasets exist with both a _clean_ and _noisy_ version of target documents. Augraphy addresses that problem by manufacturing large volumes of high-quality noisy documents to train alongside their clean source originals. Training neural networks typically requires augmenting limited sources of data in a variety of ways so that networks can learn to generalize their solutions. Networks designed to work with scanned document images must be trained with images that have the type of distortions and noise typical of real-world scanned office documents. However, if we only have real-world dirty documents, then we don’t have a good way to know for sure what the right answer is when training a neural network. By going in the reverse direction, starting with the clean document we hope a trained network will produce, we can simulate training data with dirty documents for which we already have a perfect original. With flawless rendering of distorted "originals", we can train a model to undo all that distortion and restore the document to its original form. It’s pretty much magic! # How It Works Augraphy's augmentation pipeline starts with an image of a clean document. The pipeline begins by extracting the text and graphics from the source into an "ink" layer. (Ink is synonymous with toner within Augraphy.) The augmentation pipeline then distorts and degrades the ink layer. A paper factory provides either a white page or a randomly-selected paper texture base. Like the ink layer, the paper can also be processed through a pipeline to further provide random realistic paper textures. After both the ink and paper phases are completed, processing continues by applying the ink, with its desired effects, to the paper. This merged document image is then augmented further with distortions such as adding folds or other physical deformations or distortions that rely on simultaneous interactions of paper and ink layers. The end result is an image that mimics real documents. <p align="center" width="100%"> <img src="https://github.com/sparkfish/augraphy/blob/dev/images/Pipeline.png?raw=true"> </p> ## Example Before / After Images <p align="center" width="100%"> <img src="https://github.com/sparkfish/augraphy/blob/dev/images/basic_examples.png?raw=true"> </p> # Example Usage To use the default pipeline which contains all available augmentations and sensible defaults: ```python from augraphy import * pipeline = default_augraphy_pipeline() img = cv2.imread("image.png") data = pipeline.augment(img) augmented = data["output"] ``` # Documentation For full documentation, including installation and tutorials, check the [doc directory](https://github.com/sparkfish/augraphy/tree/dev/doc). # Benchmark Results The benchmark results are computed with Augraphy 8.20 and Tobacco3482 dataset (resume subset with a total of 120 images). It is evaluated with a 2 cores machine - Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz. | Augmentation |Images per second|Memory usage (MB)| |--------------------|----------------:|----------------:| |BadPhotoCopy | 0.31| 138.25| |BindingsAndFasteners| 26.11| 20.81| |BleedThrough | 0.27| 684.69| |BookBinding | 0.06| 683.50| |Brightness | 3.31| 147.99| |BrightnessTexturize | 1.25| 181.74| |ColorPaper | 3.14| 105.66| |DirtyDrum | 0.55| 481.19| |DirtyRollers | 1.51| 173.45| |Dithering | 2.27| 126.82| |Faxify | 0.96| 142.97| |Folding | 5.73| 67.75| |Gamma | 25.39| 25.36| |Geometric | 5.24| 40.85| |InkBleed | 0.67| 294.73| |Jpeg | 3.59| 25.86| |Letterpress | 0.23| 158.60| |LightingGradient | 0.34| 638.31| |LowInkPeriodicLines | 2.94| 12.74| |LowInkRandomLines | 71.05| 12.74| |Markup | 0.71| 533.16| |NoiseTexturize | 0.53| 249.36| |PageBorder | 0.52| 465.19| |Scribbles | 1.15| 138.13| |SubtleNoise | 1.03| 202.87| |WaterMark | 1.19| 373.41| |VoronoiTessellation | 0.47| 15.90| |DelaunayTessellation| 0.76| 36.33| |Quasi Crystals | 0.25| 7.5| # Alternative Augmentation Libraries There are plenty of choices when it comes to [augmentation libraries](https://github.com/AgaMiko/data-augmentation-review). However, only Augraphy is designed to address everyday office automation needs associated with paper-oriented process distortions that come from printing, faxing, scanning and copy machines. Most other libraries focus on video and images pertinent to camera-oriented data sources and problem domains. Augraphy is focused on supporting problems related to automation of document images such as OCR, form recognition, form data extraction, document classification, barcode decoding, denoising, document restoration, identity document data extraction, document cropping, etc. Eventually, Augraphy will be able to support photo OCR problems with augmentations designed to emulate camera phone distortions. # Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. # Citations If you used Augraphy in your research, please cite the project. BibTeX: ``` @software{augraphy_library, author = {The Augraphy Project}, title = {Augraphy: an augmentation pipeline for rendering synthetic paper printing, faxing, scanning and copy machine processes}, url = {https://github.com/sparkfish/augraphy}, version = {8.2.3} } ``` # License Copyright 2023 Sparkfish LLC Augraphy is free and open-source software distributed under the terms of the [**MIT**](https://github.com/sparkfish/augraphy/blob/dev/LICENSE) license.


نیازمندی

مقدار نام
>=3.4.3 matplotlib
>=0.54.1 numba
>=1.20.1 numpy
>=4.5.1.48 opencv-python
>=8.0.0 Pillow
>=2.25.1 requests
>=0.18.1 scikit-image
>=0.23.2 scikit-learn
>=1.6.3 scipy


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl augraphy-8.2.3:

    pip install augraphy-8.2.3.whl


نصب پکیج tar.gz augraphy-8.2.3:

    pip install augraphy-8.2.3.tar.gz