LineCounter: Learning Handwritten Text Line Segmentation by Counting
Deng Li, Yue Wu, Yicong Zhou
TL;DR
The paper tackles handwritten text line segmentation (HTLS) by shifting from traditional semantic segmentation or object-detection formulations to a Line Counting approach that predicts per-pixel line indices from the top, enforcing monotonicity to reflect line order. It introduces LineCounter, an encoder-counter-decoder network with horizontal and vertical GRU-based propagation and a cumsum-based monotone activation to ensure ordered line numbers. Experiments on ICDAR2013-HSC, HIT-MW, and VML-AHTE show LineCounter achieves state-of-the-art F-measure with around 2.5 FPS on ~13M-parameter models, outperforming existing methods without heavy post-processing. The work demonstrates robust cross-script HTLS capabilities (Latin/Bangla, Chinese, Arabic) and provides public code for end-to-end HTLS with improved efficiency and accuracy.
Abstract
Handwritten Text Line Segmentation (HTLS) is a low-level but important task for many higher-level document processing tasks like handwritten text recognition. It is often formulated in terms of semantic segmentation or object detection in deep learning. However, both formulations have serious shortcomings. The former requires heavy post-processing of splitting/merging adjacent segments, while the latter may fail on dense or curved texts. In this paper, we propose a novel Line Counting formulation for HTLS -- that involves counting the number of text lines from the top at every pixel location. This formulation helps learn an end-to-end HTLS solution that directly predicts per-pixel line number for a given document image. Furthermore, we propose a deep neural network (DNN) model LineCounter to perform HTLS through the Line Counting formulation. Our extensive experiments on the three public datasets (ICDAR2013-HSC, HIT-MW, and VML-AHTE) demonstrate that LineCounter outperforms state-of-the-art HTLS approaches. Source code is available at https://github.com/Leedeng/Line-Counter.
