Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    TypeError
Message:      Couldn't cast array of type string to null
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2315, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2155, in cast_array_to_feature
                  return array_cast(
                      array,
                  ...<2 lines>...
                      allow_decimal_to_str=allow_decimal_to_str,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2014, in array_cast
                  raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
              TypeError: Couldn't cast array of type string to null

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

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 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:

{
  "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:

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}}
}
Downloads last month
41