General Detection-based Text Line Recognition

Raphael Baena, Syrine Kalleli, Mathieu Aubry
2/3/2026

No official code found. Best implementation: raphael-baena/DTLR (170 stars, Apache-2.0, last commit 2025-09-28).

Abstract

We introduce a general detection-based approach to text line recognition, be it printed (OCR) or handwritten (HTR), with Latin, Chinese, or ciphered characters. Detection-based approaches have until now been largely discarded for HTR because reading characters separately is often challenging, and character-level annotation is difficult and expensive. We overcome these challenges thanks to three main insights: (i) synthetic pre-training with sufficiently diverse data enables learning reasonable character localization for any script; (ii) modern transformer-based detectors can jointly detect a large number of instances, and, if trained with an adequate masking strategy, leverage consistency between the different detections; (iii) once a pre-trained detection model with approximate character localization is available, it is possible to fine-tune it with line-level annotation on real data, even with a different alphabet. Our approach, dubbed DTLR, builds on a completely different paradigm than state-of-the-art HTR methods, which rely on autoregressive decoding, predicting character values one by one, while we treat a complete line in parallel. Remarkably, we demonstrate good performance on a large range of scripts, usually tackled with specialized approaches. In particular, we improve state-of-the-art performances for Chinese script recognition on the CASIA v2 dataset, and for cipher recognition on the Borg and Copiale datasets. Our code and models are available at https://github.com/raphael-baena/DTLR.

View on arXivView PDF

Code Implementations(1)

raphael-baena/DTLRCommunity100%
Apache-2.0

Handwritten Text Recognition and Character Detection

17020C, C++Sep 12, 20241 years agoApache-2.0
chinese-characterschinese-handwriting-recognitingcipherhtrocr

Similar Papers

Cite this paper

@article{baena2026general,
  title  = {General Detection-based Text Line Recognition},
  author = {Raphael Baena and Syrine Kalleli and Mathieu Aubry},
  year   = {2026},
  eprint = {2409.17095},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2409.17095},
  url    = {https://arxiv.org/abs/2409.17095},
  journal = {NEURIPS 2024 2024}
}

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/2409.17095.svg)](https://codeofpaper.com/paper/2409.17095)

Discussion