Abstract
This paper introduces a self-tuning binarization algorithm designed to process heavily degraded document images, such as those found in historical archives. By combining a two-stage band-pass filtering pipeline with Bayesian Optimization (BO), the system dynamically discovers optimal processing parameters for each individual image. This approach addresses the limitations of static "one-size-fits-all" methods. Experimental evaluations on standard DIBCO and H-DIBCO datasets show that the proposed method consistently achieves high accuracy, outperforming several state-of-the-art specialized algorithms.
Introduction
Binarization—the conversion of grayscale or color images into black and white—is a critical precursor to Optical Character Recognition (OCR). While straightforward for clean documents, it is highly challenging for historical manuscripts plagued by ink bleed-through, uneven lighting, and physical aging. Most existing algorithms depend on hyperparameters that require manual tuning, which is impractical for large-scale digitization. This research proposes an automated, per-image optimization strategy to overcome these hurdles.
Methodology
The proposed solution integrates a robust filtering pipeline with an intelligent optimization framework.
The Filtering Pipeline
The process begins with Adaptive Median Filtering to separate foreground text from noisy backgrounds. This is followed by Two Band-Pass Filters: a high-frequency filter to preserve fine text details and a low-frequency filter to create a mask for suppressing background noise. Finally, Kittler’s Algorithm is applied to generate the binarized output.
Bayesian Optimization
The core innovation is the use of Bayesian Optimization (BO) to tune the six parameters governing the filtering stages. BO treats the binarization pipeline as a "black box" function and uses a Gaussian Process to model the relationship between parameter settings and output quality (measured by the F-measure). This allows the system to intelligently explore and exploit the parameter space, finding optimal settings for specific image degradations far more efficiently than exhaustive grid searches.
Experimental Evaluation
The method was evaluated using the DIBCO (2009, 2011, 2013) and H-DIBCO (2010, 2012, 2014) datasets, which contain diverse machine-printed and handwritten documents with extreme degradation.
Key Results
The proposed method demonstrated remarkable consistency and accuracy across all benchmarks. It achieved an average F-measure of 90.99% across 86 images. Notably, on the H-DIBCO 2016 dataset, it reached an F-measure of 92.03%, significantly exceeding the top competition entry of 87.61%. The method also yielded lower Distance Reciprocal Distortion (DRD) scores, indicating higher visual fidelity to the original text strokes.
Discussion and Conclusion
The primary advantage of this approach is its robustness; by treating every image as a unique optimization problem, it adapts to varied paper textures and stain patterns. While Bayesian Optimization is efficient, the iterative nature of the process introduces some computational overhead compared to single-pass methods. Future work will focus on integrating this self-tuning mechanism into word-spotting algorithms and exploring no-reference quality metrics for scenarios where ground truth is unavailable. In conclusion, the integration of Bayesian Optimization provides a powerful, automated solution for the high-quality binarization of challenging historical documents.
Summary updated