Datasets:
Rewrite dataset card: gallery, field table, per-type licences
Browse files
README.md
CHANGED
|
@@ -1,185 +1,165 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: mixed-per-plugin-licences
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
language:
|
| 8 |
-
-
|
| 9 |
-
- ru
|
| 10 |
-
tags:
|
| 11 |
-
- captcha
|
| 12 |
-
- ocr
|
| 13 |
-
- minecraft
|
| 14 |
-
- anti-bot
|
| 15 |
-
- synthetic
|
| 16 |
-
- parquet
|
| 17 |
-
modality: image
|
| 18 |
size_categories: 100K<n<1M
|
| 19 |
configs:
|
| 20 |
- config_name: default
|
| 21 |
data_files: data/*.parquet
|
| 22 |
---
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
1.9 GiB of PNG bytes · 1.9 GiB total**
|
| 28 |
|
| 29 |
-
|
| 30 |
-
anti-bot plugins, re-rendered by this project's **own Java 21 generators**, one row per
|
| 31 |
-
image, with every label field preserved byte-for-byte in Parquet.
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|---|---|---|
|
| 40 |
-
|
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
| `train-00003-of-00009.parquet` | 5,898 | 260,015,557 |
|
| 44 |
-
| `train-00004-of-00009.parquet` | 28,034 | 249,580,369 |
|
| 45 |
-
| `train-00005-of-00009.parquet` | 50,704 | 238,254,361 |
|
| 46 |
-
| `train-00006-of-00009.parquet` | 12,807 | 257,651,098 |
|
| 47 |
-
| `train-00007-of-00009.parquet` | 29,188 | 251,934,144 |
|
| 48 |
-
| `train-00008-of-00009.parquet` | 9,871 | 32,031,576 |
|
| 49 |
-
|
| 50 |
-
The shards are ordinary Parquet files: one row per sample, the raw PNG bytes in `image`,
|
| 51 |
-
and all label columns alongside. A shard is about 250 MiB; the row order is deterministic
|
| 52 |
-
(tree, then type, then `labels.jsonl` order).
|
| 53 |
-
|
| 54 |
-
## Schema
|
| 55 |
-
|
| 56 |
-
| column | Arrow type | nullable | meaning |
|
| 57 |
-
|---|---|---|---|
|
| 58 |
-
| `image` | `binary` | no | the raw PNG file bytes (decode with PIL / OpenCV) |
|
| 59 |
-
| `file` | `string` | no | PNG file name inside its type directory (`001.png` …) |
|
| 60 |
-
| `type_id` | `string` | no | type path, e.g. `out/Archy-X/Krypton/map` or `out_ru/LimboFilter/symbols` |
|
| 61 |
-
| `plugin` | `string` | no | upstream plugin the type came from |
|
| 62 |
-
| `captcha` | `string` | no | captcha type inside that plugin |
|
| 63 |
-
| `answer` | `string` | no | what the player has to type into the answer field |
|
| 64 |
-
| `text` | `string` | **yes** | what is actually **drawn** on the picture; may be `null` |
|
| 65 |
-
| `prompt` | `string` | **yes** | the task text as the plugin shows it; may be `null` |
|
| 66 |
-
| `roi` | `list<int32>` | **yes** | answer band `[x, y, w, h]`, or `null` if the band is not in the frame |
|
| 67 |
-
| `width` | `int32` | no | PNG width in pixels |
|
| 68 |
-
| `height` | `int32` | no | PNG height in pixels |
|
| 69 |
-
| `source` | `string` | no | where the type came from: upstream class and method (`file#method`) |
|
| 70 |
-
| `tree` | `string` | no | `out` or `out_ru` |
|
| 71 |
-
|
| 72 |
-
## How to load it
|
| 73 |
-
|
| 74 |
-
With 🤗 `datasets` (it reads the Parquet shards directly; no loading script, no remote code):
|
| 75 |
|
| 76 |
```python
|
| 77 |
import io
|
| 78 |
-
|
| 79 |
from datasets import load_dataset
|
| 80 |
from PIL import Image
|
| 81 |
|
| 82 |
ds = load_dataset("Titlehhhh/captchaocr-dataset", split="train")
|
| 83 |
-
print(ds) # rows: 200,000
|
| 84 |
row = ds[0]
|
| 85 |
-
image = Image.open(io.BytesIO(row["image"]))
|
| 86 |
-
band = row["roi"] # [x, y, w, h] or None
|
| 87 |
```
|
| 88 |
|
| 89 |
-
|
|
|
|
| 90 |
|
| 91 |
```python
|
| 92 |
ds = load_dataset("Titlehhhh/captchaocr-dataset", split="train")
|
| 93 |
subset = ds.filter(lambda row: row["type_id"] == "out/haq/mapcha/map")
|
| 94 |
-
```
|
| 95 |
-
|
| 96 |
-
Without `datasets` — plain `pyarrow` (or pandas):
|
| 97 |
-
|
| 98 |
-
```python
|
| 99 |
-
import io
|
| 100 |
-
from pathlib import Path
|
| 101 |
|
| 102 |
import pyarrow.parquet as pq
|
| 103 |
-
from PIL import Image
|
| 104 |
|
| 105 |
-
table = pq.read_table("data
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
image = Image.open(io.BytesIO(rows[0]["image"]))
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
|
| 114 |
-
#
|
| 115 |
-
# df = table.to_pandas()
|
| 116 |
-
```
|
| 117 |
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
`
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
`answer`.
|
| 135 |
-
|
| 136 |
-
##
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
|
| 144 |
-
|
|
| 145 |
-
| `out/
|
| 146 |
-
| `out/
|
| 147 |
-
| `out/
|
| 148 |
-
| `out/
|
| 149 |
-
| `out/
|
| 150 |
-
| `out/
|
| 151 |
-
| `out/
|
| 152 |
-
| `
|
| 153 |
-
| `
|
| 154 |
-
| `
|
| 155 |
-
| `
|
| 156 |
-
| `
|
| 157 |
-
| `out_ru/
|
| 158 |
-
| `out_ru/
|
| 159 |
-
| `out_ru/
|
| 160 |
-
|
| 161 |
-
`
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: mixed-per-plugin-licences
|
| 4 |
+
license_link: https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/blob/main/LICENSE
|
| 5 |
+
pretty_name: CaptchaOCR — Minecraft anti-bot captchas
|
| 6 |
+
task_categories: [image-to-text]
|
| 7 |
+
language: [en, ru]
|
| 8 |
+
tags: [captcha, ocr, minecraft, anti-bot, synthetic, parquet, image]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
size_categories: 100K<n<1M
|
| 10 |
configs:
|
| 11 |
- config_name: default
|
| 12 |
data_files: data/*.parquet
|
| 13 |
---
|
| 14 |
|
| 15 |
+
<img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/hero.png" alt="Six captcha styles from Minecraft anti-bot plugins: map codes, a chat code, Cyrillic symbols and a web captcha" width="100%">
|
| 16 |
|
| 17 |
+
# CaptchaOCR — Minecraft anti-bot captchas as training data
|
|
|
|
| 18 |
|
| 19 |
+
Minecraft anti-bot captchas, re-rendered by this project's Java 21 generators and packed one image per Parquet row: image, answer, drawn text and answer band.
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+

|
| 22 |
+

|
| 23 |
+

|
| 24 |
+

|
| 25 |
+

|
| 26 |
+

|
| 27 |
+

|
| 28 |
|
| 29 |
+
## What's inside
|
| 30 |
|
| 31 |
+
- **20 captcha types** from **13 upstream names** — 6 pixel-faithful ports, 10 clean-room reimplementations, 4 reconstructions with no upstream plugin.
|
| 32 |
+
- **200,000 images**, 10,000 per type, one Parquet row each, with every label field from `labels.jsonl` in the same row.
|
| 33 |
+
- **9 Parquet shards, 1.9 GiB** — 30–248 MiB each, no loading script, no remote code.
|
| 34 |
+
- **`roi` in 12 of 20 types** — 119,984 answer bands; the other 80,016 rows need the whole frame.
|
| 35 |
+
|
| 36 |
+
## Gallery
|
| 37 |
+
|
| 38 |
+
Six examples of these types, answer under each image.
|
| 39 |
+
|
| 40 |
+
| <img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/gallery/01.png" width="170" alt="Krypton map captcha with a five-letter code"><br><sub>`Krypton/map` — `Wu43b`</sub> | <img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/gallery/02.png" width="170" alt="mapcha map captcha with a four-letter code"><br><sub>`mapcha/map` — `ly8r`</sub> | <img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/gallery/03.png" width="170" alt="XProtect chat code captcha"><br><sub>`XProtect/code` — `5dqnZ9`</sub> |
|
| 41 |
|---|---|---|
|
| 42 |
+
| <img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/gallery/04.png" width="170" alt="LimboFilter Cyrillic symbol captcha"><br><sub>`LimboFilter/symbols` — `БЬ5`</sub> | <img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/gallery/05.png" width="170" alt="Reconstructed web captcha, 150 by 90 pixels"><br><sub>`GalleryCaptcha/ru-web` — `cVejm`</sub> | <img src="https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/resolve/main/assets/gallery/06.png" width="170" alt="CaptchaVerifyZ map captcha in capital letters"><br><sub>`CaptchaVerifyZ/map` — `AYKZB`</sub> |
|
| 43 |
+
|
| 44 |
+
## Quickstart
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
```python
|
| 47 |
import io
|
|
|
|
| 48 |
from datasets import load_dataset
|
| 49 |
from PIL import Image
|
| 50 |
|
| 51 |
ds = load_dataset("Titlehhhh/captchaocr-dataset", split="train")
|
|
|
|
| 52 |
row = ds[0]
|
| 53 |
+
image = Image.open(io.BytesIO(row["image"])); print(row["answer"], row["roi"])
|
|
|
|
| 54 |
```
|
| 55 |
|
| 56 |
+
<details>
|
| 57 |
+
<summary>Filter one type, or read a shard with pyarrow</summary>
|
| 58 |
|
| 59 |
```python
|
| 60 |
ds = load_dataset("Titlehhhh/captchaocr-dataset", split="train")
|
| 61 |
subset = ds.filter(lambda row: row["type_id"] == "out/haq/mapcha/map")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
import pyarrow.parquet as pq
|
|
|
|
| 64 |
|
| 65 |
+
table = pq.read_table("data/train-00000-of-00009.parquet",
|
| 66 |
+
columns=["type_id", "answer"])
|
| 67 |
+
```
|
|
|
|
| 68 |
|
| 69 |
+
`train-00000-of-00009.parquet` is the first of 9 shards; the row order is
|
| 70 |
+
deterministic (tree, type, `labels.jsonl` order).
|
| 71 |
+
</details>
|
| 72 |
|
| 73 |
+
## Fields
|
|
|
|
|
|
|
| 74 |
|
| 75 |
+
| column | type | meaning |
|
| 76 |
+
|---|---|---|
|
| 77 |
+
| `image` | `binary` | raw PNG bytes; decode with `PIL.Image.open(io.BytesIO(...))` |
|
| 78 |
+
| `file` | `string` | file name inside the type directory (`001.png` …) |
|
| 79 |
+
| `type_id` | `string` | type path, e.g. `out/Archy-X/Krypton/map` |
|
| 80 |
+
| `plugin` | `string` | upstream plugin, e.g. `haq/mapcha` |
|
| 81 |
+
| `captcha` | `string` | captcha style inside the plugin, e.g. `map` |
|
| 82 |
+
| `answer` | `string` | what the player types into the answer field |
|
| 83 |
+
| `text` | `string`, nullable | what is drawn on the image |
|
| 84 |
+
| `prompt` | `string`, nullable | task text the plugin shows |
|
| 85 |
+
| `roi` | `list<int32>`, nullable | answer band `[x, y, w, h]` |
|
| 86 |
+
| `width` | `int32` | PNG width in pixels |
|
| 87 |
+
| `height` | `int32` | PNG height in pixels |
|
| 88 |
+
| `source` | `string` | upstream class and method that produced the style |
|
| 89 |
+
| `tree` | `string` | `out` (Latin) or `out_ru` (Cyrillic) |
|
| 90 |
+
|
| 91 |
+
`text` is what is drawn; `answer` is what the player types. They differ in 3 types, where a solver step converts one to the other — train a recogniser on `text`, evaluate a solver on `answer`. `roi` is the answer band; when the band does not fit the frame, `roi` is `null`, so pass the whole image and never crop those rows.
|
| 92 |
+
|
| 93 |
+
## Types
|
| 94 |
+
|
| 95 |
+
20 types from 13 upstream names. `roi` rows count rows with the band present; `text ≠ answer` counts rows where the drawn string differs from the typed answer.
|
| 96 |
+
|
| 97 |
+
<details>
|
| 98 |
+
<summary>All 20 types</summary>
|
| 99 |
+
|
| 100 |
+
| type_id | plugin | captcha | samples | roi rows | text ≠ answer | mode | license |
|
| 101 |
+
|---|---|---|---:|---:|---:|---|---|
|
| 102 |
+
| `out/Archy-X/Krypton/map` | `Archy-X/Krypton` | `map` | 10,000 | 10,000 | 0 | clean-room | No licence — all rights reserved |
|
| 103 |
+
| `out/InstantlyMoist/Captcha/textcaptcha` | `InstantlyMoist/Captcha` | `textcaptcha` | 10,000 | 0 | 0 | faithful | MIT |
|
| 104 |
+
| `out/JSH32/Minecaptcha/map` | `JSH32/Minecaptcha` | `map` | 10,000 | 10,000 | 0 | faithful | MIT |
|
| 105 |
+
| `out/LagBug/XProtect/code` | `LagBug/XProtect` | `code` | 10,000 | 0 | 0 | faithful | MIT |
|
| 106 |
+
| `out/LagBug/XProtect/map` | `LagBug/XProtect` | `map` | 10,000 | 0 | 0 | faithful | MIT |
|
| 107 |
+
| `out/haq/mapcha/map` | `haq/mapcha` | `map` | 10,000 | 9,984 | 0 | faithful | MIT |
|
| 108 |
+
| `out/irootdev/AnBot/captcha` | `irootdev/AnBot` | `captcha` | 10,000 | 0 | 0 | clean-room | GPL-3.0 |
|
| 109 |
+
| `out/jonesdevelopment/sonar/complex` | `jonesdevelopment/sonar` | `complex` | 10,000 | 0 | 0 | clean-room | GPL-3.0 |
|
| 110 |
+
| `out/jonesdevelopment/sonar/legacy` | `jonesdevelopment/sonar` | `legacy` | 10,000 | 0 | 0 | clean-room | GPL-3.0 |
|
| 111 |
+
| `out/jonesdevelopment/sonar/standard` | `jonesdevelopment/sonar` | `standard` | 10,000 | 0 | 0 | clean-room | GPL-3.0 |
|
| 112 |
+
| `out/just-captcha/ProstoCaptcha/map` | `just-captcha/ProstoCaptcha` | `map` | 10,000 | 10,000 | 0 | faithful | MIT |
|
| 113 |
+
| `out/ringoame196-s-mcPlugin/ReproductionCAPTCHA/map` | `ringoame196-s-mcPlugin/ReproductionCAPTCHA` | `map` | 10,000 | 10,000 | 0 | clean-room | No licence file — all rights reserved |
|
| 114 |
+
| `out_ru/BotFilter/map` | `BotFilter` | `map` | 10,000 | 0 | 0 | clean-room | BSD-2-Clause, no commercial hosting |
|
| 115 |
+
| `out_ru/CaptchaVerifyZ/map` | `CaptchaVerifyZ` | `map` | 10,000 | 10,000 | 0 | clean-room | All rights reserved (Modrinth) |
|
| 116 |
+
| `out_ru/GalleryCaptcha/ru-numberword` | `GalleryCaptcha` | `ru-numberword` | 10,000 | 10,000 | 10,000 | reconstructed | Not established (see `source`) |
|
| 117 |
+
| `out_ru/GalleryCaptcha/ru-numberword-caption` | `GalleryCaptcha` | `ru-numberword-caption` | 10,000 | 10,000 | 10,000 | reconstructed | Not established (see `source`) |
|
| 118 |
+
| `out_ru/GalleryCaptcha/ru-symbols` | `GalleryCaptcha` | `ru-symbols` | 10,000 | 10,000 | 0 | reconstructed | Not established (see `source`) |
|
| 119 |
+
| `out_ru/GalleryCaptcha/ru-web` | `GalleryCaptcha` | `ru-web` | 10,000 | 10,000 | 0 | reconstructed | Not established (see `source`) |
|
| 120 |
+
| `out_ru/LimboFilter/map` | `LimboFilter` | `map` | 10,000 | 10,000 | 10,000 | clean-room | AGPL-3.0 |
|
| 121 |
+
| `out_ru/LimboFilter/symbols` | `LimboFilter` | `symbols` | 10,000 | 10,000 | 0 | clean-room | AGPL-3.0 |
|
| 122 |
+
|
| 123 |
+
This snapshot holds 20 of the 21 types in the generator tree. `out_ru/LimboFilter/digits` was rendered after the snapshot and is not published here.
|
| 124 |
+
</details>
|
| 125 |
+
|
| 126 |
+
## License
|
| 127 |
+
|
| 128 |
+
Each row carries the license of the upstream plugin it came from, so the dataset as a whole is mixed (`license_name: mixed-per-plugin-licences`). Several upstream licenses forbid commercial hosting or reserve all rights, so check the table before you ship anything. Full text: [LICENSE](https://huggingface.co/datasets/Titlehhhh/captchaocr-dataset/blob/main/LICENSE).
|
| 129 |
+
|
| 130 |
+
<details>
|
| 131 |
+
<summary>Licenses by upstream plugin</summary>
|
| 132 |
+
|
| 133 |
+
| plugin | types | samples | license | mode |
|
| 134 |
+
|---|---|---:|---|---|
|
| 135 |
+
| `Archy-X/Krypton` | 1 | 10,000 | No licence — all rights reserved | clean-room |
|
| 136 |
+
| `BotFilter` | 1 | 10,000 | BSD-2-Clause, no commercial hosting | clean-room |
|
| 137 |
+
| `CaptchaVerifyZ` | 1 | 10,000 | All rights reserved (Modrinth) | clean-room |
|
| 138 |
+
| `GalleryCaptcha` | 4 | 40,000 | Not established (see `source`) | reconstructed |
|
| 139 |
+
| `InstantlyMoist/Captcha` | 1 | 10,000 | MIT | faithful |
|
| 140 |
+
| `JSH32/Minecaptcha` | 1 | 10,000 | MIT | faithful |
|
| 141 |
+
| `LagBug/XProtect` | 2 | 20,000 | MIT | faithful |
|
| 142 |
+
| `LimboFilter` | 2 | 20,000 | AGPL-3.0 | clean-room |
|
| 143 |
+
| `haq/mapcha` | 1 | 10,000 | MIT | faithful |
|
| 144 |
+
| `irootdev/AnBot` | 1 | 10,000 | GPL-3.0 | clean-room |
|
| 145 |
+
| `jonesdevelopment/sonar` | 3 | 30,000 | GPL-3.0 | clean-room |
|
| 146 |
+
| `just-captcha/ProstoCaptcha` | 1 | 10,000 | MIT | faithful |
|
| 147 |
+
| `ringoame196-s-mcPlugin/ReproductionCAPTCHA` | 1 | 10,000 | No licence file — all rights reserved | clean-room |
|
| 148 |
+
|
| 149 |
+
`mode` says how close the pixels are to the upstream plugin: **faithful** is a port of the upstream drawing code, **clean-room** is a reimplementation from the algorithm, **reconstructed** means no upstream plugin was available.
|
| 150 |
+
</details>
|
| 151 |
+
|
| 152 |
+
## Provenance
|
| 153 |
+
|
| 154 |
+
- Every image is a re-render by the Java 21 generators in this repository, not a screenshot and not a copy.
|
| 155 |
+
- 6 types are pixel-faithful ports, 10 are clean-room reimplementations, 4 are reconstructed from reference screenshots.
|
| 156 |
+
- The generators are not seeded: this is one random render (2026-10-24). The labels and the generator code are the reproducible part.
|
| 157 |
+
- The upstream reference screenshots that guided the reconstructions are not published; they are other people's images.
|
| 158 |
+
- No image, page or answer from a third-party commercial service is included.
|
| 159 |
+
|
| 160 |
+
## Limitations
|
| 161 |
+
|
| 162 |
+
- Synthetic images: fonts, noise and layout follow the plugin algorithms, not a live server, so expect a gap on real screenshots.
|
| 163 |
+
- 8 types have no `roi`; there the answer band is not in the frame, so feed the whole image.
|
| 164 |
+
- 3 types put a solver step between the drawn string and the answer; OCR alone does not solve them.
|
| 165 |
+
- Other anti-bot plugins are not represented: the snapshot stops at the types listed above.
|