Augmentor icon indicating copy to clipboard operation
Augmentor copied to clipboard

How to simulate a photo image of a white paper with black chars printed ?

Open oohurbert opened this issue 6 years ago • 3 comments

I've found noise/blur......filters can't simulate the effect image taken by photo, because of the reflect of the camera lighting. We can easily find many white dots around the character's edge. How can we simulate this effect? issue

oohurbert avatar Mar 08 '19 09:03 oohurbert

Hi @oohurbert I think that kind of noise you show in your example image are just compression artefacts, are they not? If you saved an image as JPEG with high compression you might get images like the one above perhaps?

mdbloice avatar Mar 08 '19 11:03 mdbloice

@mdbloice, Thanks for your reply. No, that effect showed above is because of the camera lighting. If the image is scanned, there no white dots around the black edge. Anyway, we are talking about how to simulate the effect by some image processing method.

oohurbert avatar Mar 09 '19 03:03 oohurbert

@oohurbert some kind of random noising operation might be useful. I will mark this issue as an enhancement and perhaps include in an upcoming release.

By the way, it is quite easy to add custom operations to a pipeline in Augmentor. Check the docs for more details: https://augmentor.readthedocs.io/en/master/userguide/extend.html

mdbloice avatar Apr 10 '19 12:04 mdbloice