Generalization of Text Line Segmentation for HTR in Historical Documents

Gayan H. Pathirage, Stephan M. Unter, Simon Corbillé, Elisa H. Barney Smith
11/18/2026
cs.CV

No confident code implementation found for this paper.

Abstract

In this paper we investigate the generalization capability of state-of-the-art object detection models (Hi-SAM, YOLO, and RT-DETR) for the automatic segmentation of text lines in historical documents. Generalization is needed because it is not practical for museums and archives to produce large amounts of labeled samples for each new collection.

Show full abstract

We also evaluate the few-shot setting by fine-tuning the networks with only a small number of training samples per target dataset. To this end, we use nine different datasets that differ significantly in visual layout and language. Additionally, we discuss why mean average precision (mAP), a classic evaluation metric for object detection, is insufficient for assessing the quality of a text line segmentation model. Depending on the dataset, our CRNN models achieve character error rates (CER) ranging from 2.48% to 7.07% per page for the segmented text lines. This is sufficient for reading comprehension and simple text searches. Finally, we quantify the resource and time requirements of training and inference in different use case settings. This forms the basis for more informed decisions about model and hardware choices based on available resources.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pathirage2026generalization,
  title  = {Generalization of Text Line Segmentation for HTR in Historical Documents},
  author = {Gayan H. Pathirage and Stephan M. Unter and Simon Corbillé and Elisa H. Barney Smith},
  year   = {2026},
  eprint = {2611.24726},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.24726v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.24726.svg)](https://codeofpaper.com/paper/2611.24726)

Discussion