/ Модель

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

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

kaptchaocr-small-rec

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

Компактная ONNX-модель для локального распознавания букв, цифр и простых выражений на изображениях текстовых CAPTCHA.

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

Бенчмарки

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

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

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

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

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

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

KaptchaOCR ft-small — компактная модель распознавания текстовых CAPTCHA, опубликованная zaltahir как часть проекта KaptchaOCR. Это 20-мегабайтная модель ONNX на основе распознавателя PP-OCRv6 small от PaddleOCR, дообученная на CAPTCHA. Она принимает изображение и возвращает распознанные символы, включая буквы, цифры и простые математические выражения; для декодирования используется CTC. На тесте из 4 399 изображений известных обучающих источников точность полного совпадения составила 80,4%, а точность распознавания отдельных символов — 93%. Среднее время обработки на CPU ноутбука Intel i5-1145G7 — около 28 мс на изображение.

Модель рассчитана на быстрый локальный OCR текстовых CAPTCHA и применяется в библиотеке и HTTP-сервере KaptchaOCR. На CAPTCHA с ранее не встречавшимися стилями точность заметно ниже: 39,3% для генератора Python captcha и 63,7% для CAPTCHA с повернутыми символами, линиями и шумом. Обучающие метки не содержат операторов вычитания, умножения и деления, а графические CAPTCHA с объектами модель не распознаёт. Лицензия — Apache-2.0.

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

  • распознавание текста в CAPTCHA на сервере
  • локальное OCR CAPTCHA на CPU
  • извлечение букв и цифр из CAPTCHA-изображений
  • распознавание простых сложений в CAPTCHA

Ограничения

На стилях CAPTCHA, отсутствовавших в обучении, точность существенно снижается; регистр символов часто становится источником ошибок. Модель не распознаёт графические CAPTCHA и плохо обрабатывает вычитание, умножение и деление.

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

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

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

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

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

Открыть на Hugging Face

KaptchaOCR ft-small: text CAPTCHA reader

Give it a text CAPTCHA image; it returns the characters in it: letters, digits and simple sums like 5+?=8. It is a 20 MB ONNX model that reads one image in about 28 ms on a laptop CPU.

It is the default: a good balance of size, speed and accuracy. The model is one part of KaptchaOCR, a Rust library and HTTP server that prepares the image, runs the model and turns its output into text.

Which model should I use?

All three readers were fine-tuned on the same data and differ only in size.

ModelPresetSizeWhole CAPTCHA rightCharacters rightTime per image
ft-tinyfast4.3 MB67.0%88.8%9.8 ms
ft-small (this model)balanced20 MB80.4%93.0%28 ms
ft-mediumaccurate73 MB90.7%96.0%69 ms

Scores are on 4,399 held-out CAPTCHA images; time is the mean on an Intel i5-1145G7 laptop CPU, one process. "Whole CAPTCHA right" means every character matches, including upper/lower case.

How well it works

On known CAPTCHA styles. The test images were never used in training, but they come from the same six public sources as the training images (named by codename). Exact match per source:

SourceExact
atlas68%
birch95%
cobalt94%
dune61%
ember82%
fjord93%
All 4,399 images80.4%

On new CAPTCHA styles. On CAPTCHA generators it never saw, accuracy drops. This is the honest range to plan for:

Unseen generatorExactExact, ignoring case
Python captcha library39.3%70.7%
PIL: rotated glyphs, lines, speckle63.7%78.0%

About half of these errors are upper/lower case only (c/C, w/W). If your CAPTCHAs are not case-sensitive, normalize case and accuracy rises a lot.

Use it

The easiest way is the KaptchaOCR server, which already includes this model:

# preset `balanced` selects this model
kaptchaocr --ocr --manifest model/models.json --profile balanced

Then send an image over HTTP, or use the Python client:

from kaptchaocr import Client

client = Client("http://127.0.0.1:8000")
answer = client.solve(open("captcha.png", "rb").read())
print(answer.text)

To use the files from this repo directly (non-inline build), keep the charset next to the model with the same base name:

kaptchaocr --ocr --ocr-path small_rec.onnx      # reads small_rec.json from the same folder

Model list entry: {"name": "ft-small", "task": "rec", "path": "small_rec.onnx", "charset": "small_rec.json"}

Technical details

Filessmall_rec.onnx (model), small_rec.json (charset)
Base modelPP-OCRv6 small recognizer (PaddleOCR)
How it readsCTC: the model scores every character at each horizontal position; KaptchaOCR merges repeats and removes blanks to get the text
InputRGB image resized to 48 px high; any width
Output vocabulary18,710 characters, listed in small_rec.json and kept from the base model. The training labels use 73 of them (case-sensitive letters, digits and a few symbols)
Training datazaltahir/kaptchaocr-rec: 169,311 images, some shown more than once (194,355 training rows)
Validation5,000 images

Limitations

  • New styles are harder (see above). Retraining on the new style is the fix; none is included here.
  • Math: the training labels contain no - * / × ÷, so subtraction, multiplication and division are often misread. KaptchaOCR's math solver refuses to answer when it finds no operator, but the raw text is still returned.
  • Only reads text. It does not solve picture CAPTCHAs ("click all the cars").

License

Apache-2.0. Fine-tuned from PP-OCRv6 (PaddleOCR, Apache-2.0).

Links

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

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

GPU в ailist

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

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

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

Ревизия весов
ab8ae32

0 моделей