Skip to content

gwxie/Synthesize-Distorted-Image-and-Its-Control-Points

Repository files navigation

Synthesize Distorted Image and Its Control Points

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.

Quick Start

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 

Requirements

python >=3.7

opencv-python

scipy

math

pickle

About

Synthesize distorted document image and control points.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages