First update on the dataset card
Browse files
README.md
CHANGED
|
@@ -9,13 +9,70 @@ dataset_info:
|
|
| 9 |
dtype: image
|
| 10 |
splits:
|
| 11 |
- name: train
|
| 12 |
-
num_bytes: 1128223519
|
| 13 |
num_examples: 476118
|
| 14 |
download_size: 879225634
|
| 15 |
-
dataset_size: 1128223519
|
| 16 |
configs:
|
| 17 |
- config_name: default
|
| 18 |
data_files:
|
| 19 |
- split: train
|
| 20 |
path: data/train-*
|
|
|
|
| 21 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
dtype: image
|
| 10 |
splits:
|
| 11 |
- name: train
|
| 12 |
+
num_bytes: 1128223519
|
| 13 |
num_examples: 476118
|
| 14 |
download_size: 879225634
|
| 15 |
+
dataset_size: 1128223519
|
| 16 |
configs:
|
| 17 |
- config_name: default
|
| 18 |
data_files:
|
| 19 |
- split: train
|
| 20 |
path: data/train-*
|
| 21 |
+
license: gpl-3.0
|
| 22 |
---
|
| 23 |
+
# Dataset Summary
|
| 24 |
+
This is a simple dataset that I crawled (with labels) from the Internet.
|
| 25 |
+
As its title suggests, the dataset contains Captcha images.
|
| 26 |
+
One downloads and uses this dataset as usual:
|
| 27 |
+
|
| 28 |
+
```ipython
|
| 29 |
+
In [1]: from datasets import load_dataset
|
| 30 |
+
|
| 31 |
+
In [2]: dataset = load_dataset("phunc20/nj_biergarten_captcha)
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
The structure of the dataset is depicted in the following code
|
| 35 |
+
|
| 36 |
+
```ipython
|
| 37 |
+
In [3]: dataset
|
| 38 |
+
Out[3]:
|
| 39 |
+
DatasetDict({
|
| 40 |
+
train: Dataset({
|
| 41 |
+
features: ['__key__', '__url__', 'jpg'],
|
| 42 |
+
num_rows: 476118
|
| 43 |
+
})
|
| 44 |
+
})
|
| 45 |
+
|
| 46 |
+
In [4]: dataset["train"][0]["__key__"]
|
| 47 |
+
Out[4]: '001/2024-10-08T18:21:10.578994_y2jhuv'
|
| 48 |
+
|
| 49 |
+
In [5]: dataset["train"][0]["__url__"]
|
| 50 |
+
Out[5]: '/home/phunc20/git-repos/huggingface_hub/phunc20/nj_biergarten_captcha/001.tar'
|
| 51 |
+
|
| 52 |
+
In [6]: dataset["train"][0]["jpg"]
|
| 53 |
+
Out[6]: <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=140x50>
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
- The `__key__` key's value contains part of the file's path; in particular,
|
| 57 |
+
the groundtruth Captcha (aka label) lies in this string,
|
| 58 |
+
which, in the above example, is `y2jhuv`, right after the understore sign `'_'`.
|
| 59 |
+
This retrieval pattern of label is universal across the entire dataset.
|
| 60 |
+
- One thing to notice is that the set of symbols appearing in this Captcha
|
| 61 |
+
dataset is `[a-z][1-9]`, or in Python's term, `string.ascii_lowercase + string.digits[1:]`.
|
| 62 |
+
`0` is excluded on purpose because this Captcha generator generates hard-to-distinguish
|
| 63 |
+
zeros and little-oh-s.
|
| 64 |
+
- The `__url__` key is normally of no interesting usage.
|
| 65 |
+
- The `"jpg"` key's value is a `PIL.Image` (obtained from the original JPEG file).
|
| 66 |
+
|
| 67 |
+
An immediate usage of the dataset is to train a Captcha cracker.
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
# Citation Information
|
| 71 |
+
|
| 72 |
+
```
|
| 73 |
+
@ONLINE{nj_biergarten_captcha,
|
| 74 |
+
author = "phunc20",
|
| 75 |
+
title = "nj_biergarten_captcha",
|
| 76 |
+
url = "https://huggingface.co/datasets/phunc20/nj_biergarten_captcha"
|
| 77 |
+
}
|
| 78 |
+
```
|