Check /templates/sample_augmentation/config.json for a sample configuration file for augmentation.
Library: imgaug
| Augmentation | Description |
|---|---|
grayscale |
Black-and-White Augmentation |
intensity_multiplier |
Intensity Augmentation (Lighting) |
additive_gaussian_noise |
Adds Gaussian Noise (Salt-and-pepper if black-and-white is passed) |
defocus |
Image Blurring because of defocused image |
fog |
Simulates sparse shadows |
quantization |
Simulates camera's color depth variations as in low-end cameras |
contrast |
Simulates contrast variations as in badly calibrated cameras |
spatter |
Simulates dirty documents (severity: 4-5) |
motion_blur |
Simulates camera shakes when capturing |
perspective_transform |
Simulate the different perspectives/angles from which one can capture a photo |
elastic_transform |
Simulates disorientations of printed text at the character-level |
piecewise_affine |
Simulates expanded/contracted papers depressed at a location |
Library: ocrodeg - Scanned Images Augmentor
| Augmentation | Description |
|---|---|
gaussian_warp |
Local Warping to simulate ink spread & paper curls |
1d_surface_distort |
Simulates vertically rolled and stretched paper |
binarized_blur |
Thresholding + GaussianBlur |
blotches |
Patches of black-and-white simulating printing ink scatters |
multiscale_black_noise |
Simulates very old paper background |
fibrous_noise |
Add a fiber background and topple some noise |
Library: albumentations - Scanned Images Augmentor
| Augmentation | Description |
|---|---|
image_compression |
Decrease Jpeg, WebP compression of an image |
posterize |
Reduce the number of bits for each color channel |
blur |
Blur with random kernel |
median_blur |
Blur with median filter |
iso_noise |
Apply camera sensor noise |
| Augmentation | Description |
|---|---|
creases_and_curls |
Simulate folds and curls of a paper |
- https://github.com/mdbloice/Augmentor (Only segmentation supported)
- https://github.com/bethgelab/imagecorruptions (Subset of imgaug)
- github.com/UjjwalSaxena/Automold--Road-Augmentation-Library (not much relevant)
- github.com/Paperspace/DataAugmentationForObjectDetection (Subset of imgaug)
- https://github.com/mahmoudnafifi/WB_color_augmenter (Not relevant for text)
- https://github.com/codebox/image_augmentor (Subset of imgaug)
- https://github.com/mastnk/imagedegrade (Subset of imgaug)