/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
onnxruntime
Опубликована
6 ноя 2026

Hyderabad_OCR

Описание изображенийИзображение → текст7 профессий

Производная модели anandkaman/arjuna-ocr-te-en. Набор моделей ONNX для распознавания печатных строк и документов на телугу и английском языке.

0скачиваний за 30 дней0лайковвеса обновлены11 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Карточка модели Wenvia/Hyderabad_OCR на Hugging Face совпадает с карточкой anandkaman/arjuna-ocr-te-en, поэтому описание составлено по ней.

Arjuna-OCR [Te&En] — набор из трёх моделей ONNX для распознавания печатных документов на телугу и английском языке. Проект разработал Anand Kaman: распознаватель текста обучен для этого выпуска, а модели анализа макета и обнаружения текста повторно использованы из anandkaman/arjuna-ocr-kn-en. Распознаватель построен на SVTRv2-B с CTC-выходом на 206 классов и объединёнными адаптерами LoRA/ConvLoRA; запуск поддерживается на CPU через ONNX Runtime.

Для чтения отдельных строк нужны изображения обрезанных строк; для обработки целых страниц опубликован runtime, который объединяет модели макета, обнаружения текста и распознавания. На тесте из 200 реальных строк из 12 книг, не участвовавших в обучении, CER составил 3,67%, а точность символов — 96,33%. Английская оценка основана всего на 9 строках и не позволяет надёжно судить о качестве для английского языка.

Модель ориентирована на печатный текст, а не на рукопись. Распознавание хуже обобщается на шрифты из невиденных книг, путает визуально похожие согласные телугу и менее точно читает отдельные слова без контекста. Распознаватель и скрипт предсказания распространяются по Apache-2.0; модель анализа макета имеет отдельную лицензию AGPL-3.0.

Сценарии применения

  • извлечение текста телугу из сканов печатных книг
  • распознавание английских строк в документах
  • чтение обрезанных строк на телугу на CPU
  • распознавание текста на страницах документов с анализом макета

Ограничения

Качество хуже на шрифтах из книг, не встречавшихся при обучении; визуально похожие согласные телугу часто путаются, а отдельные слова распознаются хуже строк с контекстом. Оценка для английского основана лишь на 9 реальных строках; распознаватель принимает обрезанные строки, а обработка целых страниц требует отдельного runtime.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Arjuna-OCR [Te&En] — Telugu + English document OCR

Three ONNX models for reading printed Telugu and English documents: a layout model, a text detector and a Telugu+English CTC recognizer. CPU only, no GPU and no language model.

The recognizer is new work. The layout model and the detector are reused unchanged from anandkaman/arjuna-ocr-kn-en and were validated on Telugu pages before reuse.

Measured accuracy

A frozen test of 200 real line crops from 12 held-out books — books that appear in no part of training, in any form.

slicelinesCERcharacter accuracylines fully correct
all2003.6796.33 %46.5 %
Telugu1683.8396.17 %36.9 %
English90.4899.52 %88.9 %
24–32 px813.0496.96 %39.5 %
32–48 px833.8796.13 %53.0 %
48+ px306.2293.78 %46.7 %

Measured with predict_te.py as shipped — one crop at a time, which is how you will run it. Scoring the same model in padded batches gives 3.85; the difference is the white padding a batch adds, and the single-crop number is the one that describes what you get. The published script was checked line by line against the evaluation pipeline on all 200 crops: 200 identical, 0 different.

What changed in v2, measured on the same crops

v1v2
all3.933.67
48+ px6.516.22
isolated single words (n=39)8.917.89
2–3 word lines (n=34)6.395.61
4+ word lines (n=106)3.283.15

Both rows are scored here on the corrected labels described below, so v1's number differs slightly from the 3.95 published with it. Every word-count band improves; the gain is largest on isolated words, which is what the corpus rebuild was aimed at.

Two label defects were found and fixed before this release, by magnifying the crops to 5–7x and reading them:

  • ఁ (arasunna) dropped from the gold. Both model versions "inserted" it in the same places; it is plainly printed in all of them, and in one line the gold had written ం (a circle) where the page prints the crescent. Classical orthography in those books. 6 corrections across 4 lines.
  • U+200C (ZWNJ) is now stripped at decode. It is an emitting class because the synthetic corpus renders it, but it appears in none of the real labelled lines, so predicting it could only ever be wrong. predict_te.py drops it, matching the evaluation.

The English figure rests on 9 lines and 209 characters — one character error in the whole slice. It is reported because leaving it out would be worse, but 209 characters cannot support an English accuracy claim either way, and a larger real English set is the next piece of work. The synthetic English validation set is larger (419 lines, ~95 % line accuracy) but synthetic results have not transferred to real pages on this project.

Known weaknesses, measured

visually similar consonants32 % of all character errors — the single largest class, and the one a bigger synthetic corpus did not move. ద/డ (both directions, 11), ట/ఱ (6), స/న (5), వ/ప (3)
isolated single words92.1 % character accuracy, against 96.9 % for 4+ word lines — an isolated token gives a CTC reader no context
unseen typefaceson books the model has seen, CER is 0.30; on these 12 held-out books it is 3.67. The gap is typeface generalisation, not reading in general
whitespace15 % of character errors are spacing alone; some lines are read perfectly and still score an error. (An earlier release said 28 % — that was counted before the scorer's own space-run collapse, and was wrong.)
Telugu numeralsa digits-only line is sometimes emitted empty (n=3 in the test set). ASCII digits are 98.5 % accurate with none dropped

Use

pip install onnxruntime opencv-python-headless
python predict_te.py line_crop.png                 # one line crop -> text
python predict_te.py crops/*.png --json

predict_te.py is self-contained and reproduces the evaluated path exactly (verified line by line against the scored predictions). It takes line crops, not whole pages.

For whole pages — layout analysis, detection, reading order, tables, Markdown/hOCR/ALTO output — use the published runtime, which drives all three models:

pip install arjuna-ocr

Files

models/rec/arjuna_rec_te.onnx        Telugu+English recognizer, SVTRv2-B + merged LoRA, 206-class CTC
models/rec/charset_te_v2.json        the 206 classes in head order
models/rec/charset_te_v2_META.json   normalisation map and per-class corpus frequencies
models/det/inference.onnx            text detector (PP-OCRv6 lineage), reused from the Kannada release
models/layout/arjuna_layout_v15.onnx layout model, 15 classes — AGPL-3.0, see models/layout/NOTICE.md
predict_te.py                        self-contained recognizer inference
MANIFEST.json                        sha256 of every model file

Licensing

The recognizer and predict_te.py are Apache-2.0. The layout model is AGPL-3.0 (DocLayout-YOLO lineage) — see models/layout/NOTICE.md and models/layout/LICENSE-AGPL-3.0.txt. If that licence does not suit you, the recognizer and detector work without it.

Training

The recognizer is SVTRv2-B with merged LoRA/ConvLoRA adapters and a 206-class CTC head, trained on a synthetic Telugu+English corpus (~398k lines, 53 typefaces) mixed with real labelled book lines at 0.85/0.15. Training renders from a 150-DPI point of view and normalises every crop to 32 px high.

Contact: kamananand98@gmail.com

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · onnxruntime

Нельзя запустить

Модель выложена только в формате ONNX, рантайм загружает PyTorch-веса.

Ревизия весов
203fa7c

0 моделей