Hansda commited on
Commit
b0a413d
·
verified ·
1 Parent(s): 30b621e

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +45 -22
README.md CHANGED
@@ -1,24 +1,47 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image
5
- dtype: image
6
- - name: text
7
- dtype: string
8
- splits:
9
- - name: train
10
- num_bytes: 101267047
11
- num_examples: 10000
12
- - name: test
13
- num_bytes: 24984555
14
- num_examples: 2000
15
- download_size: 125317198
16
- dataset_size: 126251602
17
- configs:
18
- - config_name: default
19
- data_files:
20
- - split: train
21
- path: data/train-*
22
- - split: test
23
- path: data/test-*
24
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - image-to-text
5
+ tags:
6
+ - captcha
7
+ - ocr
8
+ - synthetic
9
+ - vision-language
10
+ size_categories:
11
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
+
14
+ # Synthetic CAPTCHA Dataset
15
+
16
+ Synthetic distorted-text CAPTCHA images with exact character-string labels, used
17
+ to fine-tune [`Hansda/minicpm-v4_6-captcha-lora`](https://huggingface.co/Hansda/minicpm-v4_6-captcha-lora).
18
+
19
+ ## Contents
20
+
21
+ - **Format:** HuggingFace `imagefolder` (`image`, `text` columns), with
22
+ `metadata.jsonl` per split.
23
+ - **Splits:** `train` (10,000) and `test` (2,000) — 12,000 images total.
24
+ - **Labels:** 4–7 characters from `ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789`
25
+ (visually ambiguous `I O 0 1 l` are excluded).
26
+
27
+ ## Generation
28
+
29
+ Images are procedurally generated (Pillow + PyTorch) with per-character random
30
+ font / size / rotation / shear / stretch, wave & bezier warping, background
31
+ gradients and noise, random lines, curves and arcs, and varied colours — to
32
+ mimic classic distorted-text CAPTCHAs.
33
+
34
+ ## Load
35
+
36
+ ```python
37
+ from datasets import load_dataset
38
+ ds = load_dataset("Hansda/captcha-dataset")
39
+ print(ds["train"][0]["text"], ds["train"][0]["image"].size)
40
+ ```
41
+
42
+ ## Note
43
+
44
+ The per-character size is randomized independently, so upper/lower case is not
45
+ always visually separable for ambiguous glyphs (`c/C`, `s/S`, `v/V`, …). This
46
+ makes strict case-sensitive scoring inherently hard; case-insensitive reading is
47
+ the more reliable target.