Datasets:
Add YAML metadata to fix warning
Browse files
README.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# TLPD: Taiwan License Plate Dataset
|
|
@@ -10,18 +28,21 @@ This dataset is designed for tasks such as license plate detection, polygon segm
|
|
| 10 |
|
| 11 |
## π Dataset Structure
|
| 12 |
|
| 13 |
-
All
|
| 14 |
|
| 15 |
```
|
| 16 |
-
|
| 17 |
βββ 0001.jpg
|
| 18 |
-
βββ 0001.json
|
| 19 |
βββ 0002.jpg
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
βββ 0002.json
|
| 21 |
-
|
| 22 |
```
|
| 23 |
|
| 24 |
-
Each `.jpg` image is paired with a `.json` file of the same name containing the polygon annotation.
|
| 25 |
|
| 26 |
## π·οΈ Annotation Format (LabelMe)
|
| 27 |
|
|
@@ -61,7 +82,7 @@ To load this dataset using the Hugging Face π€ `datasets` library:
|
|
| 61 |
```python
|
| 62 |
from datasets import load_dataset
|
| 63 |
|
| 64 |
-
ds = load_dataset("evan6007/TLPD", data_dir="
|
| 65 |
sample = ds["train"][0]
|
| 66 |
|
| 67 |
image = sample["image"] # PIL image
|
|
@@ -69,7 +90,7 @@ label = sample["label"] # "carplate"
|
|
| 69 |
points = sample["points"] # [[x1, y1], ..., [x4, y4]]
|
| 70 |
```
|
| 71 |
|
| 72 |
-
> Note: This dataset requires a custom loading script. Be sure to set `trust_remote_code=True`.
|
| 73 |
|
| 74 |
## π§βπ¬ Intended Use
|
| 75 |
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
pretty_name: Taiwan License Plate Dataset
|
| 4 |
+
annotations_creators:
|
| 5 |
+
- expert-generated
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
multilinguality: monolingual
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
source_datasets:
|
| 12 |
+
- original
|
| 13 |
+
task_categories:
|
| 14 |
+
- object-detection
|
| 15 |
+
task_ids:
|
| 16 |
+
- polygon-object-detection
|
| 17 |
+
tags:
|
| 18 |
+
- license-plate
|
| 19 |
+
- polygon
|
| 20 |
+
- labelme
|
| 21 |
---
|
| 22 |
|
| 23 |
# TLPD: Taiwan License Plate Dataset
|
|
|
|
| 28 |
|
| 29 |
## π Dataset Structure
|
| 30 |
|
| 31 |
+
All image files are stored in the `images/` directory, and their corresponding polygon annotations are in the `labels/` directory:
|
| 32 |
|
| 33 |
```
|
| 34 |
+
images/
|
| 35 |
βββ 0001.jpg
|
|
|
|
| 36 |
βββ 0002.jpg
|
| 37 |
+
βββ ...
|
| 38 |
+
|
| 39 |
+
labels/
|
| 40 |
+
βββ 0001.json
|
| 41 |
βββ 0002.json
|
| 42 |
+
βββ ...
|
| 43 |
```
|
| 44 |
|
| 45 |
+
Each `.jpg` image is paired with a `.json` file of the same name containing the polygon annotation (in LabelMe format).
|
| 46 |
|
| 47 |
## π·οΈ Annotation Format (LabelMe)
|
| 48 |
|
|
|
|
| 82 |
```python
|
| 83 |
from datasets import load_dataset
|
| 84 |
|
| 85 |
+
ds = load_dataset("evan6007/TLPD", data_dir=".", trust_remote_code=True)
|
| 86 |
sample = ds["train"][0]
|
| 87 |
|
| 88 |
image = sample["image"] # PIL image
|
|
|
|
| 90 |
points = sample["points"] # [[x1, y1], ..., [x4, y4]]
|
| 91 |
```
|
| 92 |
|
| 93 |
+
> Note: This dataset requires a custom loading script (`dataset.py`). Be sure to set `trust_remote_code=True`.
|
| 94 |
|
| 95 |
## π§βπ¬ Intended Use
|
| 96 |
|