Numerous business workflows involve printed forms, such as invoices or receipts, which are often manually digitalized to persistently search or store the data. As hardware scanners are costly and inflexible, smartphones are increasingly used for digitalization. Here, processing algorithms need to deal with prevailing environmental factors, such as shadows or crumples. Current state-of-the-art approaches learn supervised image dewarping models based on pairs of raw images and rectification meshes. The available results show promising predictive accuracies for dewarping, but generated errors still lead to sub-optimal information retrieval.
In this paper, we explore the potential of improving dewarping models using additional, structured information in the form of invoice templates. We provide two core contributions: (1) a novel dataset, referred to as Inv3D, comprising synthetic and real-world high-resolution invoice images with structural templates, rectification meshes, and a multiplicity of per-pixel supervision signals and (2) a novel image dewarping algorithm, which extends the state-of-the-art approach GeoTr to leverage structural templates using attention.
Our extensive evaluation includes an implementation of DewarpNet and shows that exploiting structured templates can improve the performance for image dewarping. We report superior performance for the proposed algorithm on our new benchmark for all metrics, including an improved local distortion of 26.1 %. We made our new dataset and all code publicly available on this website.
Figure: We take a photo and the corresponding document
template as RGB images as input and generate image
representations. These representations are combined using a
transformer architecture and subsequently upsampled to create
the backward mapping. Ultimately, the backward map is applied to
the source image, resulting in a geometrically normalized image.
Inv3D sample 00001 | 41.3 MB | Download |
Inv3D sample 00002 | 46.1 MB | Download |
Inv3D sample 00003 | 42.9 MB | Download |
Meta data | 1.7 MB | Link |
Test split | 131.7 GB | Link |
Validation split | 128.1 GB | Link |
Train split part 1 of 4 | 149.8 GB | Link |
Train split part 2 of 4 | 150.9 GB | Link |
Train split part 3 of 4 | 149.5 GB | Link |
Train split part 4 of 4 | 149.9 GB | Link |
Inv3DReal part 1 of 2 | 65.4 MB | Download |
Inv3DReal part 2 of 2 | 72.5 MB | Download |
@article{Hertlein2023,
title = {Inv3D: a high-resolution 3D invoice dataset for template-guided single-image document unwarping},
author = {Hertlein, Felix and Naumann, Alexander and Philipp, Patrick},
year = 2023,
month = {Apr},
day = 29,
journal = {International Journal on Document Analysis and Recognition (IJDAR)},
doi = {10.1007/s10032-023-00434-x},
ISSN = {1433-2825},
url = {https://doi.org/10.1007/s10032-023-00434-x}
}