Skip to main content
QUICK REVIEW

[Paper Review] DocScanner: Robust Document Image Rectification with Progressive Learning

Hao Feng, Wengang Zhou|arXiv (Cornell University)|Oct 28, 2021
Handwritten Text Recognition TechniquesComputer Science67 references15 citations
TL;DR

DocScanner proposes a progressive learning framework for document image rectification using a recurrent architecture that iteratively refines a single rectified image estimate, achieving state-of-the-art performance in OCR accuracy, image similarity, and a novel distortion metric while maintaining high efficiency. The method leverages geometric regularization and circle-consistency loss to enhance robustness and convergence.

ABSTRACT

Compared with flatbed scanners, portable smartphones provide more convenience for physical document digitization. However, such digitized documents are often distorted due to uncontrolled physical deformations, camera positions, and illumination variations. To this end, we present DocScanner, a novel framework for document image rectification. Different from existing solutions, DocScanner addresses this issue by introducing a progressive learning mechanism. Specifically, DocScanner maintains a single estimate of the rectified image, which is progressively corrected with a recurrent architecture. The iterative refinements make DocScanner converge to a robust and superior rectification performance, while the lightweight recurrent architecture ensures the running efficiency. To further improve the rectification quality, based on the geometric priori between the distorted and the rectified images, a geometric regularization is introduced during training to further improve the performance. Extensive experiments are conducted on the Doc3D dataset and the DocUNet Benchmark dataset, and the quantitative and qualitative evaluation results verify the effectiveness of DocScanner, which outperforms previous methods on OCR accuracy, image similarity, and our proposed distortion metric by a considerable margin. Furthermore, our DocScanner shows superior efficiency in runtime latency and model size.

Motivation & Objective

  • Address the challenge of geometric distortions in smartphone-captured document images due to camera angles, lighting, and paper deformation.
  • Overcome limitations of existing deep learning methods that struggle with large deformations and high computational costs.
  • Develop a lightweight, efficient, and robust rectification framework suitable for real-world deployment on mobile devices.
  • Improve rectification quality through progressive iterative refinement and geometric priors.
  • Introduce a new distortion metric (Li-D) to evaluate global geometric distortion in rectified images.

Proposed method

  • Employ a recurrent U-Net-like architecture with a single rectified image estimate that is progressively refined across multiple iterations.
  • Use a learnable upsampling module for flow prediction to better recover fine-scale deformations compared to bilinear upsampling.
  • Implement a ConvGRU-based updater unit to aggregate information across iterations and maintain spatial coherence.
  • Apply geometric regularization during training based on the prior that straight lines in the rectified image should remain straight.
  • Introduce a circle-consistency loss to enforce straight-line constraints along rows and columns, reducing global distortion.
  • Tie weights across iterations to maintain efficiency, with ablation showing that untied weights slightly improve performance at the cost of increased parameters.

Experimental results

Research questions

  • RQ1Can iterative, progressive refinement in a recurrent architecture improve document image rectification performance compared to single-stage deep learning methods?
  • RQ2How does geometric regularization based on straight-line constraints affect the reduction of global distortion in rectified images?
  • RQ3To what extent does the circle-consistency loss improve the quality of rectified document images in terms of geometric fidelity?
  • RQ4How does the proposed method balance rectification accuracy with inference efficiency and model size?
  • RQ5Can the method generalize to images with incomplete or missing document boundaries, despite not being explicitly trained on such cases?

Key findings

  • DocScanner outperforms previous state-of-the-art methods on the DocUNet Benchmark and Doc3D datasets in OCR accuracy, image similarity, and the proposed Li-D distortion metric.
  • The method achieves superior performance after convergence, with DocScanner-B surpassing DewarpNet after ~4 iterations and DocGeoNet after ~8 iterations.
  • The progressive refinement process shows stable convergence even at 200 iterations, indicating robustness to overfitting and divergence.
  • The use of a learnable upsampling module for flow prediction yields better performance than bilinear upsampling, especially in recovering small deformations.
  • The circle-consistency loss leads to a significant performance gain across all metrics on the DocUNet Benchmark, confirming its effectiveness in reducing global distortion.
  • Even with incomplete or missing document boundaries, DocScanner maintains partial rectification capability, suggesting generalization beyond training distribution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.