We uniformly sample a set of (b) reference points on (a) scanned document image, and then perform geometric deformation on them to get (c) distorted image and (d) control points. (e) Synthetic data consists of distorted image, reference points and control points.
See “Document Dewarping with Control Points” for more information.
python perturbed_images_generation_multiProcess.py --path=./scan/new/ --bg_path=./background/ --output_path=./output/`
perturbed_images_generation_multiProcess_addition1.py
perturbed_images_generation_multiProcess_addition2.py
perturbed_images_generation_multiProcess_addition3.py
python >=3.7
opencv-python
scipy
math
pickle