/ Модель

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

Лицензия
AGPL 3.0
Архитектура
phpwind-captcha-ocr · dense
Библиотека
onnxruntime
Опубликована
4 авг 2026

phpwind-captcha-ocr

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

Локальная ONNX-модель распознаёт четырёхзначные числовые CAPTCHA из одной конфигурации PHPWind.

16скачиваний за 30 дней2лайкавеса обновлены4 авг 2026

Бенчмарки

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

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

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

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

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

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

FlanChanXwO/phpwind-captcha-ocr — локальная ONNX-модель распознавания изображений четырёхзначных числовых CAPTCHA из одной legacy-установки PHPWind. Она предназначена для операторов PHPWind, разработчиков и исследователей: для локальных интеграционных тестов, исследований доступности и оценки собственной CAPTCHA при наличии разрешения. Модель принимает RGB-изображение размером 160 × 64 и выдаёт оценки для четырёх позиций, каждая из которых соответствует одной цифре от 0 до 9. Для запуска используется ONNX Runtime; внешнее API и GPU не требуются.

Контрольная точность на отложенной выборке из 997 вручную размеченных изображений целевой установки составила 88,61%. Обучающие данные охватывают только конфигурацию, обозначенную в нижнем колонтитуле как `v0.7β`; совместимость с другими версиями PHPWind, форками, темами и генераторами CAPTCHA не проверялась. Модель распространяется по лицензии AGPL-3.0. Авторы рекомендуют проверять её на разрешённых репрезентативных изображениях; README запрещает применять её для автоматизации входа в аккаунты или обхода контроля доступа.

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

  • распознавание тестовых CAPTCHA в собственной установке PHPWind
  • проверка генератора CAPTCHA на локальном наборе изображений
  • оценка доступности собственной CAPTCHA
  • интеграционное тестирование PHPWind без внешнего API

Ограничения

Показатель точности 88,61% измерен только на отложенной выборке из одной целевой установки; для других версий, тем и генераторов совместимость не проверена. Модель предназначена для авторизованных локальных тестов и оценки, а не для автоматизации входа или обхода контроля доступа.

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

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

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

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

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

Открыть на Hugging Face

PHPWind Captcha OCR

Hugging Face Model ONNX PHPWind License: AGPL--3.0

An ONNX OCR model trained on four-digit numeric captcha images from one legacy PHPWind deployment. It runs entirely on the local machine: no external API or GPU is required.

PHPWind reference implementation: alibaba/phpwind contains the PwVerifyCode and PwGDCode classes targeted by this model.

中文文档: README_zh.md

Example PHPWind captcha

Answer for the captcha shown above: 9125

Scope and responsible use

This model is intended for PHPWind site operators, developers, and researchers working with PHPWind deployments they own or are explicitly authorized to test. Use it for local integration tests, accessibility research, or evaluation of your own captcha implementation. Do not use it to automate account logins or bypass access controls.

Different PHPWind versions and custom themes can generate visually different captchas. Validate on representative, authorized samples before deployment.

Version support

This checkpoint was trained only on four-digit captcha images from a target deployment whose footer displayed v0.7β. This is an observed deployment label, not a claim about an official PHPWind release version.

Deployment or version labelStatusEvidenceNotes
Target deployment — footer label v0.7βTraining scope997 manually labelled images; 88.61% held-out validation accuracyThe only visual configuration represented in the training and reference evaluation data.
Other PHPWind releases, forks, themes, or captcha generatorsUnverifiedNo version-specific evaluationValidate with authorized representative samples; fine-tune if the visual distribution differs.

Quick start

Install the runtime:

pip install onnxruntime pillow numpy

Run local inference on a captcha image you are authorized to process:

import numpy as np
import onnxruntime as ort
from PIL import Image

session = ort.InferenceSession("model.onnx", providers=["CPUExecutionProvider"])

def predict_captcha(path: str) -> str:
    image = Image.open(path).convert("RGB").resize((160, 64), Image.BILINEAR)
    inputs = np.asarray(image, dtype=np.float32).transpose(2, 0, 1)[None] / 255.0
    logits = session.run(None, {"input": inputs})[0]
    return "".join(str(int(logits[0, position].argmax())) for position in range(4))

print(predict_captcha("captcha.png"))

Model interface

ItemValue
Inputinput: [batch, 3, 64, 160], float32, RGB values in [0, 1]
Outputlogits: [batch, 4, 10]; argmax per position gives one digit
PreprocessingRGB → resize to 160 × 64 (bilinear) → divide by 255
FormatONNX, opset 18
RuntimeCPU supported; no GPU requirement

Evaluation

The published checkpoint reached 88.61% validation accuracy on a held-out split of 997 manually labelled images from the target v0.7β footer-label deployment. This is a model-card reference metric, not a guarantee for another PHPWind version, theme, or deployment. See the evaluation protocol for the scope and reproducibility requirements.

Documentation

Training data and license

The checkpoint was trained from scratch with a position-preserving CNN on 997 manually labelled images. For adaptation, use only captcha images from PHPWind deployments you operate or are authorized to evaluate.

This project is licensed under GNU AGPL-3.0. Modified or networked derivative works must meet the license's corresponding-source requirements.

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

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

GPU в ailist

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

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

Модель выложена только в формате ONNX.

Ревизия весов
4f2bb82

0 моделей