arXiv:2610.34148cs.CVOct 2026

Manuscript Offprint

arXiv:2610.34148

MuSTEL: A Large-Scale Multilingual Synthetic Text-Line Image Dataset for OCR

Majid Adibian, Hossein Saberi, Hossein Zeinali

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Optical character recognition (OCR) systems depend strongly on the scale and diversity of their training data. One approach to document OCR first analyzes the page layout and extracts text-line images, which are then transcribed by a recognition model. Multilingual line-level recognition involving Persian, Arabic, and English presents additional challenges because different writing directions, fonts, and styles may coexist within a single line. This paper introduces MuSTEL, a large-scale synthetic multilingual OCR dataset containing more than 14.5 million annotated text-line images, organized into a training partition and predefined small and large test sets. Samples are generated from natural-language corpora, including multilingual content already present in the source texts. The generation framework incorporates capability-aware font selection, within-line font and style changes, mixed-direction text rendering, highlighting, and underlining. A validated repository of 2,009 font files from 711 families supports broad typographic coverage, while varied backgrounds, blur, geometric distortion, skew, stroke width, and image save quality provide diverse document-like appearances. Statistical analysis characterizes the dataset's language composition, transcription lengths, lexical and character-sequence diversity, image dimensions, typography, and rendering conditions. MuSTEL provides a resource for training and evaluating multilingual line-level OCR systems and investigating recognition robustness across languages, writing directions, and visual conditions.

Keywords: Optical character recognition; Synthetic OCR dataset; Multilingual text recognition; Text-line recognition; Persian and Arabic OCR; Typographic diversity

1. Introduction

Optical character recognition (OCR) converts text in images into machine-readable form and supports applications such as digital archiving [1], document management [2], information

  • Corresponding author.

E-mail address: hzeinali@aut.ac.ir (Hossein Zeinali).

†^{\dagger} Contributing authors.

E-mail address: majid77@aut.ac.ir (Majid Adibian).

E-mail address: hossein.saberi1998@gmail.com (Hossein Saberi).

1^{1} Department of Computer Engineering, Amirkabir University of Technology, Tehran, Iran

2^{2} Sharif DeepMine (Zharf Kavan Sharif) Co., Tehran, Iran extraction [3], historical-document preservation [4], and intelligent search [5]. Although deep learning has substantially improved OCR performance, model effectiveness and generalization still depend strongly on the scale, quality, and diversity of training data [6].

Some OCR systems recognize text directly from complete documents or images [7], while others first detect or segment text lines and recognize them independently. The latter approach requires line-level training data that capture variation in language, writing direction, typography, and image appearance [8]. These requirements motivate MuSTEL, a large-scale synthetic multilingual dataset for Persian, Arabic, and English line-level OCR [9].

OCR tasks differ in both visual input and recognition granularity. Scene-text recognition addresses text in natural environments, where perspective, illumination, complex backgrounds, and irregular placement affect readability [10]. Document OCR processes scanned, photographed, or digitally generated documents and may operate at the page, region, word, or text-line level [11].

Line-level recognition predicts the character sequence of a single text-line image. By separating transcription from page-layout analysis, it supports pipelines that detect or segment lines before recognizing their content. This setting is particularly relevant to books, reports, archives, and other text-dense documents [8].

Large annotated datasets help recognition models learn variations in character appearance, typography, textual context, and image quality [12]. Synthetic generation makes it possible to produce accurately labeled text-line images at a scale that would be costly and time-consuming to achieve through manual annotation [13]. For multilingual document OCR, these images should also represent diverse scripts, fonts, styles, and visual conditions [14].

Multilingual recognition becomes more challenging when different writing systems coexist within a line [9]. Persian and Arabic use right-to-left cursive scripts with contextual character forms and joining behavior, whereas English is written from left to right [15]. Although Persian and Arabic share many characters, they retain distinct letters and orthographic conventions [16]. Embedded English content therefore requires recognition systems to handle changes in writing direction while preserving the correct transcription order [14].

The challenge extends beyond language switching. Document lines may contain changes in font family, style, size, and emphasis, alongside numerals, punctuation, and technical expressions. Background variation, blur, skew, distortion, and compression introduce further visual complexity. Training resources should therefore represent linguistic, typographic, and visual variability together [17].

Existing datasets address these requirements only partially. Many widely used resources focus on English or other Latin-based languages, while resources jointly covering Persian, Arabic [10], and English at the line level remain limited [18]. Restricted font collections, predominantly single-font rendering, and limited formatting or appearance variation further motivate a dataset combining multilingual content with broad typographic and visual diversity [19].

To address these limitations, MuSTEL provides synthetic text-line images for Persian, Arabic, English, and mixed-language recognition. Its main contributions are:

  • Large-scale multilingual line-level OCR dataset: MuSTEL contains more than 14.5 million annotated images, including mixed-language content already present in the source corpora. Predefined training, small-test, and large-test partitions support evaluation at different computational scales.

  • Validated multilingual typography and capability-aware rendering: A manually validated repository of 2,009 font files from 711 families supports font selection according to the required scripts, numerals, punctuation, hamzah forms, and diacritics, together with within-line font and style changes.

  • Linguistic and stylistic diversity: The generation framework extends TRDG to render monolingual and mixed-language lines with varied typography, highlighting, and underlining. Backgrounds, blur, distortion, skew, stroke width, and image save quality provide additional document-like variation.

The remainder of this paper is organized as follows: Section 2 reviews related work, Section 3 describes dataset construction, Section 4 presents statistical analysis, Section 5 discusses advantages, applications, limitations, and future directions, and Section 6 concludes the paper.

References (40)