Image-to-Text
Transformers
Safetensors
English
Russian
pp_ocrv6_small_rec
captcha
ocr
minecraft
pp-ocrv6
text-recognition
cyrillic
Instructions to use Titlehhhh/captchaocr-ppocrv6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Titlehhhh/captchaocr-ppocrv6 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="Titlehhhh/captchaocr-ppocrv6")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Titlehhhh/captchaocr-ppocrv6", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Rewrite model card: measured results, held-out table, limitations
Browse files17 unmodified lines181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482491 unmodified line25125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334417 unmodified lines- PaddlePaddle/PP-OCRv6_medium_rec_safetensors---# CaptchaOCR PP-OCRv6 — a text recogniser for Minecraft anti-bot captchasA fine-tune of **PP-OCRv6_medium_rec** on Minecraft anti-bot captchas whose CTC head was**extended to 18 762 classes**, so that it reads Cyrillic as well as Latin letters and digits.Feed it **one crop of the answer band**, get the string drawn on it.> **This card describes the `universal_v1` checkpoint — the weights that are actually in this> repository.** The card that was here before described an older run (`all20`) whose weights are> **no longer** published: 18 710 classes, 15 types, median exact 0.920. Those numbers were true> of that model and are **not** true of this one.## What is in this repository| file | what it is ||---|---|| `model.safetensors` | the weights: 308 tensors, 19 186 154 float parameters || `config.json` | the base architecture, with `head_out_channels` patched to 18 762 || `preprocessor_config.json` | the base processor + the PaddleOCR normalisation + the 18 762-character dictionary || `processor_config.json` | `PPOCRV6SmallRecImageProcessor` || `character_list.txt` | the dictionary, one entry per line, index 0 = `blank` || `finetune_meta.json` | the provenance of the export (checkpoint, epoch, step, α) || `README.md` | this card |Provenance, as shipped in `finetune_meta.json`:| | ||---|---|| base model | `PaddlePaddle/PP-OCRv6_medium_rec_safetensors` (Apache-2.0) || fine-tuned checkpoint | `train/runs/ppocrv6/universal_v1/best.pt` || epoch / step | 4 (the last of 5) / 2 440 || classes | **18 762** (index 0 = `blank`) — the pretrained head is **kept and extended**, not replaced || float parameters | **19 186 154** || weight interpolation | **none** — α = 1.0, the checkpoint exactly (see below) || transformers class | `PPOCRV6SmallRecForTextRecognition` || normalisation | mean = std = 0.5 (the PaddleOCR convention) || exported by | `train/export_ppocr_hf.py` |### What changed in the headThe pretrained PP-OCRv6 dictionary has **18 710** classes and no Cyrillic letters at all. Rows**0 … 18 709** of the published dictionary are the pretrained ones (index 18 709 is the space);rows **18 710 … 18 761** are the **52 Cyrillic characters** that were appended:```ЁАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ + авдеикмнопрстцчшыья```The pretrained rows were **kept**, not replaced (`--expand-charset` grows the head and copies theold rows). The extension was done in an earlier run of the same recipe; in this run the flagreported «0 characters missing», i.e. the grown head was inherited from the previous checkpointtogether with its weights.## The training run in numbers| | ||---|---|| initialised from | `train/runs/ppocrv6/limbo_cyr3/best.pt` — the **«replay mix»** Cyrillic checkpoint (3 short Cyrillic types + digits + 5 Latin types, 4 epochs) || epochs × steps | 5 × 488 = **2 440** steps || batch size | 32 || learning rate | **8e-6** for the backbone **and** 8e-6 for the head || weight decay / grad clip | 0.01 / 1.0 || `--limit-per-type` | **1 500** || training examples | **15 594** || evaluation set | **11 400** images over 18 types || wall clock | **33.9 min** (2 032 s) at **108 img/s** (one GTX 1080 Ti, fp16/AMP) || seed | 42 · `--workers 0` (the sandbox this was trained in denies multiprocessing named pipes) |### What was trained on, and what was not**12 types were trained on.** Eight of them are fed as the **answer band** (the `roi` rectangleof the dataset); the four that have no band at all are trained on the **whole frame**, so themodel has to find the code by itself:| type | input ||---|---|| `out/Archy-X/Krypton/map` | band || `out/haq/mapcha/map` | band || `out/just-captcha/ProstoCaptcha/map` | band || `out/ringoame196-s-mcPlugin/ReproductionCAPTCHA/map` | band || `out_ru/GalleryCaptcha/ru-symbols` | band || `out_ru/GalleryCaptcha/ru-web` | band || `out_ru/LimboFilter/digits` | band || `out_ru/LimboFilter/symbols` | band || `out/InstantlyMoist/Captcha/textcaptcha` | **whole frame** || `out/LagBug/XProtect/code` | **whole frame** || `out/LagBug/XProtect/map` | **whole frame** || `out/irootdev/AnBot/captcha` | **whole frame** |(The names above are the dataset's own `type_id` values.)**6 types were never seen in training.** The unit of generalisation is the **plugin**, never thepicture: these six whole plugins were held out of the training set:`out/JSH32/Minecaptcha/map`, `out/jonesdevelopment/sonar/standard`,`out/jonesdevelopment/sonar/legacy`, `out/jonesdevelopment/sonar/complex`,`out_ru/BotFilter/map`, `out_ru/CaptchaVerifyZ/map`.**3 types were excluded on purpose:** `out_ru/GalleryCaptcha/ru-numberword`,`out_ru/GalleryCaptcha/ru-numberword-caption` and `out_ru/LimboFilter/map`. In all three the picture shows aRussian number **written out in words** while the player types **digits** (`text != answer` inall 10 000 rows of each). Converting a written number into a typed one is a **solver step**,not an OCR task, so the model was not asked to do it. That is a limitation of the *task*, not adefect of the model — but it does mean these three types are **not supported**.## Measured resultsMeasured inside the same run (`train/runs/ppocrv6/universal_v1/result.json`): 11 400 images over18 types, greedy CTC decoding, exact match against the drawn string.| aggregate | before this run¹ | **after** ||---|---|---|| median exact match over 18 types | 0.8750 | **0.8875** || median CER | 0.0394 | **0.0344** || micro exact match (11 400 images) | 0.6499 | **0.7797** || micro CER | 0.1795 | **0.0755** |¹ «before this run» is the **zero step of this very run** — the checkpoint it was initialisedfrom (`limbo_cyr3/best.pt`), **not** the pretrained PP-OCRv6 base. The fine-tune moved themedian only a little (0.875 → 0.8875) but the **micro** average a lot (0.6499 → 0.7797): themedian is dominated by the types that were already solved, while the micro average counts everyimage — and the frame-trained types that were unreadable rose sharply(`out/LagBug/XProtect/code` 0.00 → 0.36, `out/LagBug/XProtect/map` 0.00 → 0.27,`out/InstantlyMoist/Captcha/textcaptcha` 0.12 → 0.24).### Types the model was trained onThese numbers are a **sample-level hold-out**: the first 200 rows of every type were taken outof training, the rest were trained on. They are *not* unseen-plugin numbers.| type | n | exact (zero step) | **exact** | CER ||---|---:|---:|---:|---:|| `out/Archy-X/Krypton/map` | 200 | 1.0000 | **1.0000** | 0.0000 || `out/ringoame196-s-mcPlugin/ReproductionCAPTCHA/map` | 200 | 1.0000 | **1.0000** | 0.0000 || `out/irootdev/AnBot/captcha` | 200 | 0.9350 | **0.9950** | 0.0017 || `out/haq/mapcha/map` | 200 | 0.9650 | 0.9550 | 0.0112 || `out_ru/GalleryCaptcha/ru-web` | 200 | 0.9300 | 0.9250 | 0.0150 || `out/just-captcha/ProstoCaptcha/map` | 200 | 0.9250 | 0.9150 | 0.0150 || `out_ru/LimboFilter/digits` | 200 | 0.8900 | 0.8900 | 0.0288 || `out_ru/GalleryCaptcha/ru-symbols` | 200 | 0.8600 | **0.8850** | 0.0400 || `out_ru/LimboFilter/symbols` | 200 | 0.7650 | **0.8000** | 0.0783 || `out/LagBug/XProtect/code` | 200 | 0.0000 | **0.3600** | 0.1542 || `out/LagBug/XProtect/map` | 200 | 0.0000 | **0.2700** | 0.1850 || `out/InstantlyMoist/Captcha/textcaptcha` | 200 | 0.1200 | **0.2400** | 0.4220 |### Types the model never sawWhole plugins that were held out of training — these are the honest generalisation numbers.| type | n | exact (zero step) | **exact** | CER ||---|---:|---:|---:|---:|| `out_ru/CaptchaVerifyZ/map` | 1 500 | 0.9647 | **0.9780** | 0.0045 || `out/JSH32/Minecaptcha/map` | 1 500 | 0.9340 | **0.9373** | 0.0162 || `out_ru/BotFilter/map` | 1 500 | 0.7113 | **0.8140** | 0.0508 || `out/jonesdevelopment/sonar/legacy` | 1 500 | 0.5973 | **0.7693** | 0.0793 || `out/jonesdevelopment/sonar/complex` | 1 500 | 0.3520 | **0.6253** | 0.1293 || `out/jonesdevelopment/sonar/standard` | 1 500 | 0.2613 | **0.5707** | 0.1671 |**One caveat about the protocol.** The evaluation runs on held-out rows of the **same generatorrender** the model was trained on (the generators are not seeded, so a re-render is a differentsample set). For the twelve trained types the hold-out is by *sample*; only the six held-outplugins above are genuinely unseen styles.## No weight interpolation — and why the previous card said α = 0.4The previous version of this repository published a WiSE-FT soup, `θ = 0.4·θ_ft + 0.6·θ_pretrained`.That was the right call **for that model**: a small fine-tune on a few types degraded the unseenplugins, and interpolating back towards the base restored them (measured there: base median0.588 → α = 0.4 median 0.638 → α = 1.0 median 0.480).This model is different in two ways: it is trained on **most** of the types it is evaluated on,and its head has **grown**. On an expanded head the interpolation has nothing to interpolate*towards* for the 52 appended rows — the base model has no such rows — while the encoder isdragged back to the pretrained solution. Measured on the α-sweep of the `limbo_cyr3`predecessor: the sweep's best α = 0.6 lifted the Latin held-out types from 0.644 to 0.772 andat the same time **collapsed the Cyrillic ones**:| type | α = 1.0 | after interpolation (α = 0.6) ||---|---:|---:|| `out_ru/LimboFilter/symbols` | 0.765 | **0.016** || `out_ru/GalleryCaptcha/ru-symbols` | 0.860 | **0.002** || `out_ru/LimboFilter/digits` | 0.890 | **0.666** |So WiSE-FT is **destructive** on an expanded head. That soup was kept as an exhibit(`train/runs/ppocrv6/limbo_cyr3/soup_best.pt`) and is **not** used here. What works for avocabulary expansion on this model is **replay** — keeping the old data in the training mix —and this checkpoint is therefore published with **α = 1.0**: the fine-tuned weights, unchanged.## What this model is NOT good at* **It is not a universal captcha solver.** It is a fine-tune for a **known set of captchastyles**: a plugin that draws in a style absent from the training set will not be handled.For the six plugins that were held out, the honest expectation is the numbers in the tableabove — between 0.57 and 0.98 exact match, not 1.0.* **The three number-word types are not supported at all** (`out_ru/GalleryCaptcha/ru-numberword`,`out_ru/GalleryCaptcha/ru-numberword-caption`, `out_ru/LimboFilter/map`): the picture shows a numberwritten in Russian words while the answer is digits. Use a solver step for those.* **The weakest trained types are `out/LagBug/XProtect/code` (0.36) and `out/LagBug/XProtect/map`(0.27)**: both are the same 130×130 sheet with per-character cumulative translation and 51interference lines. `out/InstantlyMoist/Captcha/textcaptcha` (0.24) is a 128×128 sheet withthin diagonal noise.* **It reads a band, not a picture.** On a whole game screenshot it falls apart — see below.## How to use it```pythonimport torchfrom PIL import Imagefrom transformers import PPOCRV6SmallRecForTextRecognition, PPOCRV6SmallRecImageProcessorREPO = "Titlehhhh/captchaocr-ppocrv6"model = PPOCRV6SmallRecForTextRecognition.from_pretrained(REPO)proc = PPOCRV6SmallRecImageProcessor.from_pretrained(REPO)image = Image.open("001.png").convert("RGB") # a crop of the answer bandpx = proc(images=[image], return_tensors="pt")["pixel_values"] # 48 x 320, mean = std = 0.5with torch.no_grad():logits = model.head.head(model.head.encoder(model.model(px).last_hidden_state).last_hidden_state)# greedy CTC decoding against character_list.txt (index 0 = "blank")with open("character_list.txt", encoding="utf-8") as f:dictionary = [line.rstrip("\r\n") for line in f] # rstrip, not strip: " " is a classids = logits.argmax(-1)[0].tolist()text, prev = [], -1for i in ids:if i != prev and i != 0: # collapse repeats, drop the blank1 unmodified lineprev = iprint("".join(text))```The same 18 762-character dictionary is also inside `preprocessor_config.json`, so the processorcan decode without the text file. The input geometry is 48 × 320 (resize + pad), and thenormalisation is `mean = std = 0.5` — the PaddleOCR convention the fine-tune was trained with.**Do not let the processor fall back to the ImageNet statistics**: `preprocessor_config.json`already carries the patched values.### The important practical part: give it a band, not a screenshotThe model is trained on the **band** for 8 of its 12 types, so it expects a tight crop of thecode. On a **whole game screenshot** it collapses: measured on the six real screenshots of theproject owner, feeding the whole frame gives **2/6** correct readings.The fix is a **cropper** — an «eye» in front of the recogniser. It proposes candidate text bands(a per-type heuristic, an ink box, and a glyph detector), the model reads every candidate, andthe reading with the **highest confidence** wins (vote counts are only a tie-break). With thecropper: **6/6** on those same six screenshots. The implementation ships with the project(`webapp/cropper.py`, `webapp/app.py` — see<https://github.com/Titlehhhh/CaptchaOCR> and `reports/CROPPER.md` for the measured numbers).If you use the dataset: crop by `roi` whenever it is not `null`.## The dataset this was trained on[`Titlehhhh/captchaocr-dataset`](https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset)— synthetic, every image is a re-render by this project's own Java generators of a captcha drawnby an open-source Minecraft plugin. As published (commit`dd4d7479a95f8e4c8ea19643dfe5889fe5dea113`):| | ||---|---|| types | **20** (12 in `out`, 8 in `out_ru`), 13 plugins || samples | **200 000** (10 000 per type), 1.9 GiB of PNG bytes || files | 9 Parquet shards (`data/train-*-of-00009.parquet`), one row per sample, raw PNG in `image` || bands | 12 types carry an `roi` band; 119 984 rows have one, 80 016 do not || `text != answer` | 3 types (the Russian number words) || alphabet | 115 distinct characters over the whole set |Two facts worth stating plainly:* The model was trained on the **project's own render** of that dataset (10 000 images pertype), not on the published Parquet shards — the pixels are the same style, the sample set isthat of the local render.* The type **`out_ru/LimboFilter/digits`** (four digits, real-server style) was trained on and**is not part of the published dataset snapshot**: the generator gained that type after thedataset was exported.### Provenance and licence* Base model: `PaddlePaddle/PP-OCRv6_medium_rec_safetensors`, **Apache-2.0**. These weights area derivative of it.* The dataset is **synthetic** — re-renders, not screenshots of a live server; no picture, pageor answer of a third-party commercial service is used or published.* The dataset is published under **the licence of the upstream plugin each row came from**(`license_name: mixed-per-plugin-licences`; the per-plugin breakdown is in the datasetrepository's `LICENSE` and in its card). Some of those licences forbid commercial hosting orreserve all rights — **read them before you use the data**.* The 52 characters added to the head are the Cyrillic alphabet; the images that taught themcome from the `GalleryCaptcha` and `LimboFilter` types, whose licences are listed above.## Reproducing```powershell$env:PYTHONIOENCODING="utf-8"$env:HF_HOME="C:\Users\Title\Projects\CapthaModel\.hf-cache"# the run that produced these weights.venv-gpu\Scripts\python.exe train\finetune_ppocr.py --out train\runs\ppocrv6\universal_v1 `--init-from train\runs\ppocrv6\limbo_cyr3\best.pt --expand-charset --train-frames `--epochs 5 --batch-size 32 --lr 8e-6 --head-lr 8e-6 --workers 0 --seed 42 `--limit-per-type 1500 --holdout-per-type 200 --eval-every 5 --save-every 400 --max-minutes 60 `--val-types out/jonesdevelopment/sonar/standard out/jonesdevelopment/sonar/legacy out/jonesdevelopment/sonar/complex out_ru/BotFilter/map out_ru/CaptchaVerifyZ/map out/laforetbrut/are-you-sure/code out/JSH32/Minecaptcha/map `--exclude-types ru-numberword ru-numberword-caption LimboFilter/map# the export (alpha = 1.0 -> the checkpoint itself, no interpolation).venv-gpu\Scripts\python.exe train\export_ppocr_hf.py `--ckpt train\runs\ppocrv6\universal_v1\best.pt --soup-alpha 1.0 `--out train\runs\ppocrv6\universal_v1\export_hf```Notes on the command as it was actually run:* `--init-from train\runs\ppocrv6\limbo_cyr3\best.pt` points at the **replay-mix** checkpoint ofthe same recipe (the chain is `limbo_cyr` → charset expansion → `limbo_cyr3` → replay mix →`universal_v1`); the whole chain is documented in `reports/TRAINING_LIMBO_DIGITS.md` §8.* The filter `out/laforetbrut/are-you-sure/code` matched **no type** in the dataset and had noeffect; the other six `--val-types` are the six held-out plugins.* `--expand-charset` was a **no-op in this run** («0 characters missing»): the head had alreadybeen grown to 18 762 classes by the predecessor checkpoint.* The dataset is **not seeded**: a re-render produces a different sample set, so the exactper-type numbers above belong to the render this checkpoint was measured on.17 unmodified lines1819202122232425262728293031323334353637383940414243444546474849505152535455565758596061621 unmodified line64656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817917 unmodified lines- PaddlePaddle/PP-OCRv6_medium_rec_safetensors---<img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/model_hero.png" alt="A haq/mapcha/map captcha frame, the answer band cropped from it by roi, and the string the model decodes from that band: ly8r" width="100%">       # CaptchaOCR PP-OCRv6 — captcha text recogniserA PP-OCRv6 fine-tune that reads a captcha image, usually the answer band: 18 evaluated styles,Latin letters, digits, and part of the Cyrillic alphabet.## Use it in 10 lines```pythonimport torchfrom PIL import Imagefrom transformers import PPOCRV6SmallRecForTextRecognitionfrom transformers import PPOCRV6SmallRecImageProcessorREPO = "Titlehhhh/captchaocr-ppocrv6"model = PPOCRV6SmallRecForTextRecognition.from_pretrained(REPO).eval()proc = PPOCRV6SmallRecImageProcessor.from_pretrained(REPO)inputs = proc(images=[Image.open("band.png").convert("RGB")], return_tensors="pt")with torch.no_grad():logits = model(**inputs)print(proc.post_process_text_recognition(logits)) # [{'text': 'ly8r', 'score': 0.96}]````band.png` is a tight crop of the answer band, not a screenshot. The processor resizes it to48 × 320, normalises it, and decodes CTC with the 18 762-entry dictionary from`preprocessor_config.json`. This exact snippet was run against these weights.<details><summary>Manual CTC decoding</summary>If you would rather decode by hand, the forward returns the logits in `last_hidden_state`:```pythonwith open("character_list.txt", encoding="utf-8") as f:dictionary = [line.rstrip("\r\n") for line in f] # rstrip, not strip: " " is a classids = logits.last_hidden_state.argmax(-1)[0].tolist()text, prev = [], -1for i in ids:if i != prev and i != 0: # collapse repeats, drop the blank1 unmodified lineprev = iprint("".join(text))```</details>## What it supports| Supports | Does not support ||---|---|| **18 evaluated styles**: 11 from the published dataset snapshot, 1 unpublished (`LimboFilter/digits`), 6 held-out plugins | **3 types that draw a number as a word** while the answer is digits: `ru-numberword`, `ru-numberword-caption`, `LimboFilter/map`. Those need a solver step, not OCR || Latin letters, digits, and 52 of 66 Cyrillic letters: all 33 uppercase, 19 lowercase | 14 lowercase Cyrillic letters are not classes: б, г, ё, ж, з, й, л, у, ф, х, щ, ъ, э, ю. Characters outside `character_list.txt` are never produced || A tight crop of the answer band (`roi` in the dataset), noisy bands with lines, per-character shifts, coloured backgrounds | A whole game screenshot without a cropper: 2 of 6 screenshots read correctly as-is, 6 of 6 with the project's cropper || Styles close to the trained plugins, including other plugins of the same visual family | A style absent from training: expect 0.57–0.98 exact, never 1.0 |## ResultsExact match and CER after greedy CTC decoding, on 11 400 images of 18 styles: 200 rows per trainedstyle plus 1 500 rows per held-out plugin. The median is taken over the 18 per-style scores; themicro average counts every image, and 9 000 of the 11 400 belong to held-out plugins.| Metric | Score ||---|---:|| median exact match (18 styles) | **0.8875** || median CER | **0.0344** || micro exact match (11 400 images) | **0.7797** || micro CER | **0.0755** |**Plugins never seen in training** — what to expect on a new style:| Plugin | Style | Exact | CER ||---|---|---:|---:|| CaptchaVerifyZ | map | 0.9780 | 0.0045 || Minecaptcha | map | 0.9373 | 0.0162 || BotFilter | map | 0.8140 | 0.0508 || sonar | legacy | 0.7693 | 0.0793 || sonar | complex | 0.6253 | 0.1293 || sonar | standard | 0.5707 | 0.1671 |<details><summary>Per-style results on the trained styles</summary>Sample-level hold-out: the first 200 rows of each style were taken out of training.| Style | Exact | CER ||---|---:|---:|| `Archy-X/Krypton/map` | 1.0000 | 0.0000 || `ringoame196-s-mcPlugin/ReproductionCAPTCHA/map` | 1.0000 | 0.0000 || `irootdev/AnBot/captcha` | 0.9950 | 0.0017 || `haq/mapcha/map` | 0.9550 | 0.0112 || `GalleryCaptcha/ru-web` | 0.9250 | 0.0150 || `just-captcha/ProstoCaptcha/map` | 0.9150 | 0.0150 || `LimboFilter/digits` (unpublished) | 0.8900 | 0.0288 || `GalleryCaptcha/ru-symbols` | 0.8850 | 0.0400 || `LimboFilter/symbols` | 0.8000 | 0.0783 || `LagBug/XProtect/code` | 0.3600 | 0.1542 || `LagBug/XProtect/map` | 0.2700 | 0.1850 || `InstantlyMoist/Captcha/textcaptcha` | 0.2400 | 0.4220 |</details>## Limitations* **Four of the twelve trained styles are fed the whole frame**, not a band. Three of them are theweakest: `XProtect/code` 0.36, `XProtect/map` 0.27, `textcaptcha` 0.24. The fourth,`AnBot/captcha`, scores 0.9950 on the frame — the input is not what makes a style hard.* **The median is carried by the easy styles.** Seven of the twelve trained styles score 0.89 orbetter. On a style unlike the training set, read the held-out table instead: 0.57–0.98.* **Screenshots need a cropper.** Feed a raw game frame and 2 of 6 real screenshots are readcorrectly; with the cropper, 6 of 6. The cropper ships with the code, not with these weights.* **The micro average is mostly held-out data** (9 000 of 11 400 images), so it answers "how doesit do on unseen plugins", not "accuracy in general".* **It is not an API and not a solver for new plugins.** One image in, one string out; a styleabsent from training has no guarantee.## Dataset[`Titlehhhh/captchaocr-dataset`](https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset) issynthetic: every image is a re-render by this project's Java generators of a captcha drawn by anopen-source Minecraft plugin. The published snapshot holds 20 styles and 200 000 samples. A 21ststyle, `out_ru/LimboFilter/digits`, was generated after the export and is not in the snapshot —which is why 18 evaluated styles = 11 from the snapshot + 1 unpublished + 6 held out.<details><summary>Training</summary>* Base: `PP-OCRv6_medium_rec` (Apache-2.0). The CTC head was kept and grown from 18 710 to18 762 classes: rows 18 710–18 761 are 52 appended Cyrillic characters.* Initialised from an earlier Cyrillic run of the same recipe that replayed Latin data, thenfine-tuned on 12 styles.* 5 epochs × 488 steps = 2 440 steps, batch 32, learning rate 8e-6 for backbone and head,weight decay 0.01, gradient clipping 1.0.* 15 594 training examples: 1 300 per style after a 200-row hold-out, from a 10 000-per-stylerender (the run used `--limit-per-type 1500`).* 33.9 min on one GTX 1080 Ti, 108 images/s, fp16.* Whole-frame styles were trained with the frame as input; the rest with the `roi` band.* Full command line and scripts:[github.com/Titlehhhh/CaptchaOCR](https://github.com/Titlehhhh/CaptchaOCR).</details>## License & citationThe weights are **Apache-2.0**, as a derivative of `PP-OCRv6_medium_rec`. The training data ispublished under **mixed per-plugin licences** — some rows are non-commercial, so read the dataset[LICENSE](https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/blob/main/LICENSE) beforecommercial use.<details><summary>Version history</summary>* `universal_v1` (2026-10-27) — current weights, 18 762 classes, no weight interpolation (α = 1.0).It replaced `all20`, which is no longer downloadable.* Interpolation is off on purpose: pulling back towards the base damages the appended rows(`LimboFilter/symbols` 0.765 → 0.016). Replay of old data, not a weight soup, is what keeps them.</details>
README.md+127-292