Datasets:
File size: 2,715 Bytes
bfeaa5b 2168966 f8699ca 5d3c37c f8699ca 5d3c37c f8699ca 5d3c37c f8699ca 5d3c37c f8699ca 5d3c37c f8699ca 5d3c37c bfeaa5b 2168966 f8699ca 2168966 f8699ca 2168966 f8699ca 2168966 f8699ca 2168966 f8699ca 2168966 f8699ca 2168966 f8699ca 2168966 00f9ae2 2168966 5d3c37c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
---
license: mit
pretty_name: Taiwan License Plate Dataset
annotations_creators:
- expert-generated
language:
- en
- zh
multilinguality: monolingual
size_categories:
- 1K<n<10K
source_datasets:
- original
task_categories:
- object-detection
tags:
- license-plate
- polygon
- labelme
---
# TLPD: Taiwan License Plate Dataset
TLPD is a dataset containing over 3,000 images of vehicles with annotated license plates. Each image is labeled using the [LabelMe](https://github.com/wkentaro/labelme) format, with polygon annotations describing the boundary of each license plate.
This dataset is designed for tasks such as license plate detection, polygon segmentation, and scene text detection.
## π Dataset Structure
All image files are stored in the `images/` directory, and their corresponding polygon annotations are in the `labels/` directory:
```
images/
βββ 0001.jpg
βββ 0002.jpg
βββ ...
labels/
βββ 0001.json
βββ 0002.json
βββ ...
```
Each `.jpg` image is paired with a `.json` file of the same name containing the polygon annotation (in LabelMe format).
## π·οΈ Annotation Format (LabelMe)
Each `.json` file includes:
- `"imagePath"`: the name of the image
- `"shapes"[0]["label"]`: `"carplate"`
- `"shapes"[0]["points"]`: polygon points in the format `[[x1, y1], [x2, y2], ...]`
- `"imageHeight"`, `"imageWidth"`: image dimensions
### Example JSON snippet:
```json
{
"imagePath": "0001.jpg",
"shapes": [
{
"label": "carplate",
"points": [
[5.0, 8.0],
[117.0, 12.0],
[115.0, 52.0],
[3.0, 48.0]
],
"shape_type": "polygon"
}
],
"imageHeight": 60,
"imageWidth": 121
}
```
## π» How to Use
To load this dataset using the Hugging Face π€ `datasets` library:
```python
from datasets import load_dataset
ds = load_dataset("evan6007/TLPD", data_dir=".", trust_remote_code=True)
sample = ds["train"][0]
image = sample["image"] # PIL image
label = sample["label"] # "carplate"
points = sample["points"] # [[x1, y1], ..., [x4, y4]]
```
> Note: This dataset requires a custom loading script (`dataset.py`). Be sure to set `trust_remote_code=True`.
## π§βπ¬ Intended Use
- Object Detection (license plate)
- Polygon segmentation
- Scene text analysis
- Few-shot detection tasks
## πͺͺ License
This dataset is licensed under the **MIT License**. You are free to use, share, and modify it for both academic and commercial purposes, with attribution.
## βοΈ Citation
```
@misc{TLPD2025,
title={Taiwan License Plate Dataset},
author={Hoi Lee ,Jui-Hung Weng, Chao-Hsiang Hsiao},
year={2025},
howpublished={\url{https://huggingface.co/datasets/evan6007/TLPD}}
}
``` |