Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 4.95 KB

File metadata and controls

63 lines (49 loc) · 4.95 KB

Augmentations relevant to textual images

Check /templates/sample_augmentation/config.json for a sample configuration file for augmentation.

Supported Augmentations

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

Other augmentations

Augmentation Description
creases_and_curls Simulate folds and curls of a paper

Footnotes

Other similar libraries that didn't help