Giter VIP home page Giter VIP logo

document-dewarping-with-control-points's Introduction

Document-Dewarping-with-Control-Points

A simple yet effective approach to rectify distorted document image by estimating control points and reference points.

The control points and reference points are composed of the same number of vertices and describe the shape of the document in the image before and after rectifying, respectively. The control points are controllable to facilitate interaction or subsequent adjustment. You can flexibly select post-processing methods and the number of vertices according to different application scenarios.

See “Document Dewarping with Control Points” for more information.

Quick Start

  • Test python test.py --data_path_test=./your/test/data/path/

  • Train python train.py --data_path_train=./your/train/data/path/ --data_path_validate=./your/validate/data/path/ --data_path_test=./your/test/data/path/ --batch_size 32 --schema train --parallel 01

Requirements

python >=3.7

pytorch

opencv-python

scipy

Visualization

image

Dataset

The training dataset can be synthesised using the scripts.

document-dewarping-with-control-points's People

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.