End-to-End Text Line Detection and Ordering

Benjamin Kiessling
6/2/2026
cs.CV

Official code: mittagessen/orli (13 stars, Python, Apache-2.0, last commit 2026-08-29).

Abstract

Practical text-recognition pipelines for historical documents typically decompose layout analysis into line detection followed by a separate reading-order step, with the latter most often handled by a hand-coded geometric heuristic that struggles with marginalia, multiple columns, tables, and source-specific editorial conventions. This article introduces Orli (Ordered Regression of Lines), an end-to-end model that casts both sub-tasks as a single image-to-sequence problem: from a page image, Orli autoregressively generates text-line baselines directly in reading order.

Show full abstract

Baselines are represented in a chord-frame parameterization that anchors a line's position, orientation, and extent while encoding local geometry through perpendicular offsets; an iterative refinement head and a local visual refiner produce the final curve. Trained on a heterogeneous corpus of 196,691 pages spanning ten writing systems, Orli marginally exceeds the previously reported state of the art for cBAD line detection without dataset-specific training, reaches near perfect coverage and ordering on multiple reading-order benchmarks zero-shot, and adapts to more specialized out-of-domain layouts with limited fine-tuning. The method's source code and model weights are available under an open license at https://github.com/mittagessen/orli.

View on arXivView PDF

Code Implementations(1)

mittagessen/orliOfficial100%
Apache-2.0

Orli is ordered regression of lines

132PythonSep 25, 20243 months agoApache-2.0

Similar Papers

Cite this paper

@article{kiessling2026endtoend,
  title  = {End-to-End Text Line Detection and Ordering},
  author = {Benjamin Kiessling},
  year   = {2026},
  eprint = {2606.04166},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04166v1}
}

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

Discussion