SegHist: A General Segmentation-based Framework for Chinese Historical Document Text Line Detection
Xingjian Hu, Baole Wei, Liangcai Gao, Jun Wang
TL;DR
SegHist addresses the challenge of Chinese historical document text line detection by extending segmentation-based methods with a targeted framework. It introduces Text Kernel Stretching (TKS) to generate learnable kernel maps, a lightweight Layout Enhanced Module (LEM) to capture global layout, and an Iterative Expansion Distance Post-processor (IEDP) to recover text regions with high aspect ratios without hyperparameters. When integrated with DB++, the resulting DB-SegHist achieves state-of-the-art results on CHDAC and MTHv2 and competitive results on HDRC, with demonstrated rotational robustness and clear gains from ablations. The approach enables more reliable downstream OCR and layout understanding in dense historical documents, with code available publicly for reuse and extension.
Abstract
Text line detection is a key task in historical document analysis facing many challenges of arbitrary-shaped text lines, dense texts, and text lines with high aspect ratios, etc. In this paper, we propose a general framework for historical document text detection (SegHist), enabling existing segmentation-based text detection methods to effectively address the challenges, especially text lines with high aspect ratios. Integrating the SegHist framework with the commonly used method DB++, we develop DB-SegHist. This approach achieves SOTA on the CHDAC, MTHv2, and competitive results on HDRC datasets, with a significant improvement of 1.19% on the most challenging CHDAC dataset which features more text lines with high aspect ratios. Moreover, our method attains SOTA on rotated MTHv2 and rotated HDRC, demonstrating its rotational robustness. The code is available at https://github.com/LumionHXJ/SegHist.
