File size: 3,168 Bytes
24aaa76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | Turkic OCR: code of the generator, training and evaluation (release candidate rc1_code)
Copyright 2026 Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova
Cite as: Suleimenov, A., Bolatov, Z., Baglanova, A., Kadirbekova, A., Nguyen, A. T. (2026). A Handwriting Recognition
Model for Turkic Languages in Latin and Cyrillic Script. Project report, Nazarbayev University.
LICENCES
1. Apache License 2.0 (full text in LICENSE) applies to every file of this package except those listed under 2, 3 and 4.
2. GNU Affero General Public License v3.0 (full text in LICENSE.AGPL-3.0) applies to the training and inference path of the
line detector and to the page pipeline. The detector is trained and run with Ultralytics YOLO, which is AGPL-3.0, and
Ultralytics states that models trained with its code fall under AGPL-3.0 (https://www.ultralytics.com/license).
Files under AGPL-3.0:
src/linedet/det_prep.py
src/linedet/det_yolo.py
src/linedet/det_eval.py
src/linedet/det_overlay.py
src/linedet/det_school_stats.py
scripts/r5_linedet/det_prep_school.sbatch
scripts/release2/rel2_d5_prep.py
scripts/release2/rel2_d5_prep.sbatch
scripts/release2/rel2_d5_detector_retrain.sbatch
scripts/release2/rel2_d5_check.py
scripts/release2/rel2_d5_check.sbatch
scripts/release2/rel2_d5_install.sbatch
scripts/r5_release/rc1_prep_det.py
scripts/r5_testpass2/tp2_tob_detect.py
scripts/r5_loopguard/lg_detect.py
scripts/r5_showcase/showcase_detect.py
release/turkic-line-detector-yolo11s/infer.py
release/turkic-line-detector-yolo11s/requirements.txt
release/page-pipeline/infer.py
release/page-pipeline/requirements.txt
3. MIT License (third-party code, vendored without changes; only its README.md is left out):
the HTR-Flor folder in src/ref/ (its path is set in scripts/r5_ref/ref_common.py)
HTR-Flor, https://github.com/arthurflor23/handwritten-text-recognition, repository state of 23 June 2021,
Copyright (c) 2019 Arthur Flôr. Its LICENSE file is kept in that folder. Used for the HTR-Flor reference re-run.
4. Public domain data: src/pagesynth/assets/naturalearth/*.geojson, Natural Earth vector map data (1:50m),
https://www.naturalearthdata.com. Its terms of use state: "All versions of Natural Earth raster + vector map data found on
this website are in the public domain." The generator draws its maps from these files.
THIRD-PARTY SOFTWARE NOT INCLUDED
The code imports third-party packages (PyTorch, Hugging Face Transformers, kraken, Ultralytics, KenLM, PaddleOCR and others)
that are installed separately under their own licences; the environments/ folder lists the versions used.
The PP-OCRv3 reference re-run (scripts/r5_ref, arm R2) expects PaddleOCR release v2.10.0
(7 March 2025) of https://github.com/PaddlePaddle/PaddleOCR (Apache-2.0) in the folder under src/ref/ that
scripts/r5_ref/ref_common.py sets (PPOCR_ROOT); it is not included.
NOT INCLUDED
No data, no font files and no weights of the fine-tuned readers (PaddleOCR-VL-1.6, Qwen3-VL-2B, PP-OCRv6-medium and its
character language model). See README.
|