Words as Geometric Features: Estimating Homography using Optical Character Recognition as Compressed Image Representation
Ross Greer, Alisha Ukani, Katherine Izhikevich, Earlence Fernandes, Stefan Savage, Alex C. Snoeren
TL;DR
Addresses document alignment under privacy/storage constraints by estimating the homography via OCR-derived features, where the relationship between point coordinates obeys $ \mathbf{p'} = \mathbf{H} \mathbf{p} $ with $ \mathbf{H} \in \mathbb{R}^{3\times3} $ and 8 degrees of freedom. The method replaces gradient-based keypoints and descriptors with OCR word-centroids and text strings, using bipartite text matching followed by robust RANSAC to compute the homography. Across a set of test documents, the OCR-based approach often matches or exceeds the accuracy of image-based SIFT methods while using orders of magnitude less data. The approach enables privacy-preserving, scalable document registration with practical impact on automated form processing and verification.
Abstract
Document alignment and registration play a crucial role in numerous real-world applications, such as automated form processing, anomaly detection, and workflow automation. Traditional methods for document alignment rely on image-based features like keypoints, edges, and textures to estimate geometric transformations, such as homographies. However, these approaches often require access to the original document images, which may not always be available due to privacy, storage, or transmission constraints. This paper introduces a novel approach that leverages Optical Character Recognition (OCR) outputs as features for homography estimation. By utilizing the spatial positions and textual content of OCR-detected words, our method enables document alignment without relying on pixel-level image data. This technique is particularly valuable in scenarios where only OCR outputs are accessible. Furthermore, the method is robust to OCR noise, incorporating RANSAC to handle outliers and inaccuracies in the OCR data. On a set of test documents, we demonstrate that our OCR-based approach even performs more accurately than traditional image-based methods, offering a more efficient and scalable solution for document registration tasks. The proposed method facilitates applications in document processing, all while reducing reliance on high-dimensional image data.
