Binarizing Documents by Leveraging both Space and Frequency
Fabio Quattrini, Vittorio Pippi, Silvia Cascianelli, Rita Cucchiara
TL;DR
Document binarization must separate ink from background under diverse degradations while leveraging both local stroke details and global page-level patterns. The authors introduce FourBi, a fully-convolutional U-Net-like network that uses Fast Fourier Convolutions to fuse local spatial information with global spectral context, trained on 256x256 patches and evaluated with larger patches at inference. A patch-overlap fusion post-processing strategy further mitigates border artifacts, and extensive experiments on DIBCO/H-DIBCO and non-Latin datasets show FourBi often surpasses Conv baselines and Transformer-based SotA methods while remaining parameter-efficient. This approach demonstrates that FFT-based global context can robustly handle varied degradations and scripts, offering a scalable alternative to ViT-based models in document analysis.
Abstract
Document Image Binarization is a well-known problem in Document Analysis and Computer Vision, although it is far from being solved. One of the main challenges of this task is that documents generally exhibit degradations and acquisition artifacts that can greatly vary throughout the page. Nonetheless, even when dealing with a local patch of the document, taking into account the overall appearance of a wide portion of the page can ease the prediction by enriching it with semantic information on the ink and background conditions. In this respect, approaches able to model both local and global information have been proven suitable for this task. In particular, recent applications of Vision Transformer (ViT)-based models, able to model short and long-range dependencies via the attention mechanism, have demonstrated their superiority over standard Convolution-based models, which instead struggle to model global dependencies. In this work, we propose an alternative solution based on the recently introduced Fast Fourier Convolutions, which overcomes the limitation of standard convolutions in modeling global information while requiring fewer parameters than ViTs. We validate the effectiveness of our approach via extensive experimental analysis considering different types of degradations.
