Skip to main content
QUICK REVIEW

[Paper Review] Recovering Homography from Camera Captured Documents using Convolutional Neural Networks

Syed Ammar Abbas, Sibt ul Hussain|arXiv (Cornell University)|Sep 11, 2017
Handwritten Text Recognition TechniquesComputer Science6 citations
TL;DR

This paper proposes a deep learning approach using a convolutional neural network (CNN) to automatically recover homography from camera-captured document images, enabling perspective correction without manual input. Trained end-to-end on a large-scale synthetic dataset, the method regresses four corner points using L1 loss, achieving state-of-the-art performance with a mean distance error of 2.56 pixels on real-world test images, outperforming commercial tools like CamScanner and ABBYY-Reader.

ABSTRACT

Removing perspective distortion from hand held camera captured document images is one of the primitive tasks in document analysis, but unfortunately, no such method exists that can reliably remove the perspective distortion from document images automatically. In this paper, we propose a convolutional neural network based method for recovering homography from hand-held camera captured documents. Our proposed method works independent of document's underlying content and is trained end-to-end in a fully automatic way. Specifically, this paper makes following three contributions: Firstly, we introduce a large scale synthetic dataset for recovering homography from documents images captured under different geometric and photometric transformations; secondly, we show that a generic convolutional neural network based architecture can be successfully used for regressing the corners positions of documents captured under wild settings; thirdly, we show that L1 loss can be reliably used for corners regression. Our proposed method gives state-of-the-art performance on the tested datasets, and has potential to become an integral part of document analysis pipeline.

Motivation & Objective

  • To address the lack of reliable, fully automatic methods for perspective correction in hand-held camera-captured document images.
  • To develop a method that works independently of document content, layout, or text structure, such as margins or parallel lines.
  • To create a large-scale synthetic dataset capturing diverse photometric and geometric distortions for training robust homography estimation.
  • To evaluate the effectiveness of L1 loss and 4-point homography parameterization for corner regression in real-world settings.
  • To outperform existing commercial and academic methods in accuracy and robustness under challenging real-world conditions.

Proposed method

  • The method uses a custom convolutional neural network architecture trained end-to-end to regress the four corner points of a document from a single input image.
  • A large-scale synthetic dataset is introduced, simulating diverse geometric and photometric transformations such as rotation, scaling, lighting changes, and background clutter.
  • The homography is parameterized using four corner points rather than a 3×3 matrix, which leads to a more stable training process and better performance.
  • The network is trained with L1 loss to minimize the Euclidean distance between predicted and ground-truth corner positions.
  • The model is evaluated on real-world test images and compared against commercial tools like CamScanner and ABBYY-Reader using both qualitative and quantitative metrics.
  • The method is efficient, requiring only 0.04 seconds per forward pass on a Tesla K40 GPU.

Experimental results

Research questions

  • RQ1Can a deep CNN be effectively trained to estimate homography from a single camera-captured document image without relying on handcrafted features?
  • RQ2Does using L1 loss for corner regression yield better performance than L2 loss in homography estimation tasks?
  • RQ3Can a synthetic dataset that captures the true distribution of real-world distortions enable state-of-the-art performance in homography recovery?
  • RQ4How does the proposed method compare to commercial applications like CamScanner and ABBYY-Reader in terms of accuracy and robustness under challenging conditions?
  • RQ5Does 4-point homography parameterization lead to more stable and accurate results than traditional 3×3 matrix representation?

Key findings

  • The proposed method achieves a mean distance error (MDE) of 2.56 pixels on a manually annotated test set of 400 images, significantly outperforming CamScanner (21.5 px) and ABBYY-Reader (20.6 px).
  • The method demonstrates superior robustness to strong illumination artifacts, background clutter, motion blur, and partial occlusion, where commercial tools often fail.
  • On the SmartDoc-QA dataset, the method consistently improves OCR performance compared to baseline rectification methods, especially under complex geometric and photometric variations.
  • The use of L1 loss for corner regression yields better generalization and stability than L2 loss, though the performance difference is not statistically significant.
  • The 4-point homography parameterization method results in a more stable loss function and achieves state-of-the-art performance compared to 3×3 matrix representation.
  • The method is fully automatic and content-agnostic, requiring no assumptions about document layout, margins, or textline parallelism.

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.