Deep Unrestricted Document Image Rectification

Hao Feng, Shaokai Liu, Jiajun Deng, Wengang Zhou, Houqiang Li
4/18/2023
cs.CV

Official code: fh2019ustc/DocTr-Plus (546 stars, last commit 2026-02-01).

Abstract

In recent years, tremendous efforts have been made on document image rectification, but existing advanced algorithms are limited to processing restricted document images, i.e., the input images must incorporate a complete document. Once the captured image merely involves a local text region, its rectification quality is degraded and unsatisfactory. Our previously proposed DocTr, a transformer-assisted network for document image rectification, also suffers from this limitation. In this work, we present DocTr++, a novel unified framework for document image rectification, without any restrictions on the input distorted images. Our major technical improvements can be concluded in three aspects. Firstly, we upgrade the original architecture by adopting a hierarchical encoder-decoder structure for multi-scale representation extraction and parsing. Secondly, we reformulate the pixel-wise mapping relationship between the unrestricted distorted document images and the distortion-free counterparts. The obtained data is used to train our DocTr++ for unrestricted document image rectification. Thirdly, we contribute a real-world test set and metrics applicable for evaluating the rectification quality. To our best knowledge, this is the first learning-based method for the rectification of unrestricted document images. Extensive experiments are conducted, and the results demonstrate the effectiveness and superiority of our method. We hope our DocTr++ will serve as a strong baseline for generic document image rectification, prompting the further advancement and application of learning-based algorithms. The source code and the proposed dataset are publicly available at https://github.com/fh2019ustc/DocTr-Plus.

View on arXivView PDF

Code Implementations(1)

The official code for “Deep Unrestricted Document Image Rectification”, TMM, 2023.

54654MATLAB, PythonFeb 6, 20238 months agoNOASSERTION

Similar Papers

Cite this paper

@article{feng2023deep,
  title  = {Deep Unrestricted Document Image Rectification},
  author = {Hao Feng and Shaokai Liu and Jiajun Deng and Wengang Zhou and Houqiang Li},
  year   = {2023},
  eprint = {2304.08796},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.08796v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.08796.svg)](https://codeofpaper.com/paper/2304.08796)

Discussion