sparkfish / augraphy

Augmentation pipeline for rendering synthetic paper printing, faxing, scanning and copy machine processes
https://github.com/sparkfish/augraphy
MIT License
334 stars 43 forks source link

Add `InkMottling` Augmentation to Ensure Ink is Non-Uniform #304

Closed jboarman closed 1 year ago

jboarman commented 1 year ago

To render real-world documents, ink sourced from a perfect PDF source should not render as perfect black, for example. Such examples are easily denoised with threshold filters. So we need to add noise to the incoming ink layer.

Effects of InkMottling Augmentation

Example Problem Image (what this augmentation will fix)

image

Example Real-World Mottling of Black Ink

image

kwcckw commented 1 year ago

This is now added in this pull request: https://github.com/sparkfish/augraphy/pull/305