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

Synthesize distorted document image and control points.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:Apache License 2.0


Languages

Language:Python 100.0%