Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ArrowNotImplementedError
Message:      Lists with non-zero length null components are not supported
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 827, in _write_table
                  self.pa_writer.write_table(pa_table, writer_batch_size)
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 612, in write_table
                  super().write_table(pa_table, row_group_size=row_group_size)  # type: ignore
                  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pyarrow/parquet/core.py", line 1213, in write_table
                  self.writer.write_table(table, row_group_size=row_group_size)
                  ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "pyarrow/_parquet.pyx", line 2453, in pyarrow._parquet.ParquetWriter.write_table
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowNotImplementedError: Lists with non-zero length null components are not supported
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

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.

image_path
string
plate_text
string
original_text
string
layout
string
crop_transform
string
plate_subtype
string
capture_condition
string
plate_quad
list
char_boxes
list
label_pairing
string
exclusion
string
split
string
source_dataset
string
license
string
record_id
string
source_url
string
recorded_at
timestamp[s, tz=UTC]
several_plates
bool
source_meta
string
video_id
string
frame_idx
int32
track_id
string
usage
string
crop_xyxy
list
crop_origin
list
frame_size
list
crop_source
string
quad_source
string
crop_pairing
string
crop_missing
string
tilt_deg
float64
tilt_fix
string
frame_sha256
unknown
crop_format
string
crop_bytes
unknown
render_format
string
render_bytes
unknown
/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumberplateOcrEu-2023-06-26/test/img/20297805-20297805--E6610-Nissan_Almera_0.png
E6610
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 447, 97 ]
[ 0, 0, 447, 97 ]
[ 447, 97 ]
source_crop
null
bound
null
null
null
[ 145, 2, 215, 158, 102, 227, 196, 43, 198, 114, 165, 234, 135, 146, 131, 208, 194, 217, 145, 252, 208, 41, 55, 186, 25, 64, 73, 87, 79, 89, 161, 97 ]
jpg
[ 255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 255, 219, 0, 67, 0, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 4, 3, 2, 2, 2, 2, 5, 4, 4, 3, 4, 6, 5, 6, 6, 6, 5, 6, 6, 6, ...
null
null
/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumberplateOcrEu-2023-06-26/test/img/20297833-20297833--L8450-Dacia_Sandero_0.png
L8450
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 750, 163 ]
[ 0, 0, 750, 163 ]
[ 750, 163 ]
source_crop
null
bound
null
null
null
[ 237, 161, 228, 163, 52, 63, 9, 210, 121, 214, 32, 154, 101, 220, 199, 153, 15, 234, 227, 35, 87, 66, 232, 39, 31, 113, 232, 43, 120, 149, 97, 174 ]
jpg
[ 255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 255, 219, 0, 67, 0, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 4, 3, 2, 2, 2, 2, 5, 4, 4, 3, 4, 6, 5, 6, 6, 6, 5, 6, 6, 6, ...
null
null
/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumberplateOcrEu-2023-06-26/test/img/20375540-20375540--N3129-SEAT_Leon_0.png
N3129
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 896, 194 ]
[ 0, 0, 896, 194 ]
[ 896, 194 ]
source_crop
null
bound
null
null
null
[ 149, 214, 107, 58, 100, 42, 52, 235, 138, 92, 52, 59, 124, 142, 110, 42, 216, 130, 130, 118, 54, 60, 189, 73, 141, 109, 22, 203, 180, 226, 176, 45 ]
jpg
[ 255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 255, 219, 0, 67, 0, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 4, 3, 2, 2, 2, 2, 5, 4, 4, 3, 4, 6, 5, 6, 6, 6, 5, 6, 6, 6, ...
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
J9913
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 1205, 262 ]
[ 0, 0, 1205, 262 ]
[ 1205, 262 ]
source_crop
null
bound
null
null
null
[ 68, 160, 8, 240, 142, 110, 133, 80, 248, 110, 160, 189, 29, 12, 190, 234, 61, 83, 116, 234, 251, 82, 214, 106, 39, 169, 62, 48, 38, 154, 56, 50 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
M1928
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 616, 133 ]
[ 0, 0, 616, 133 ]
[ 616, 133 ]
source_crop
null
bound
null
null
null
[ 24, 239, 241, 143, 109, 194, 124, 11, 242, 126, 212, 39, 186, 191, 186, 69, 104, 236, 70, 30, 92, 16, 96, 102, 30, 240, 203, 119, 96, 37, 215, 101 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
P2797
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 582, 126 ]
[ 0, 0, 582, 126 ]
[ 582, 126 ]
source_crop
null
bound
null
null
null
[ 23, 236, 64, 216, 185, 156, 42, 10, 243, 61, 149, 235, 125, 216, 1, 177, 153, 214, 204, 118, 98, 231, 14, 30, 109, 212, 91, 250, 176, 196, 102, 228 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
P4453
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 648, 141 ]
[ 0, 0, 648, 141 ]
[ 648, 141 ]
source_crop
null
bound
null
null
null
[ 42, 1, 254, 208, 158, 149, 36, 131, 57, 138, 197, 230, 135, 70, 224, 62, 206, 212, 189, 55, 38, 33, 105, 138, 201, 91, 56, 46, 114, 17, 119, 71 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
M6560
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 936, 203 ]
[ 0, 0, 936, 203 ]
[ 936, 203 ]
source_crop
null
bound
null
null
null
[ 67, 133, 254, 51, 189, 247, 58, 167, 117, 147, 227, 200, 206, 154, 144, 249, 222, 182, 122, 44, 17, 131, 32, 81, 211, 119, 107, 167, 179, 137, 42, 37 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
H3454
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 726, 158 ]
[ 0, 0, 726, 158 ]
[ 726, 158 ]
source_crop
null
bound
null
null
null
[ 99, 253, 52, 31, 198, 108, 244, 191, 224, 4, 238, 146, 140, 189, 227, 203, 193, 171, 222, 2, 83, 28, 209, 35, 251, 146, 59, 248, 145, 134, 199, 107 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
"/Volumes/ExtremeSSD/Datasets/LP/raw/autoria_eu/autoriaNumberplateOcrEu-2023-06-26.zip!autoriaNumber(...TRUNCATED)
F4389
null
one_line
null
eu
null
null
null
bound
null
test
autoria_eu
CC-BY-4.0
null
null
null
null
null
null
null
null
train_and_eval
[ 0, 0, 761, 165 ]
[ 0, 0, 761, 165 ]
[ 761, 165 ]
source_crop
null
bound
null
null
null
[ 21, 59, 162, 216, 80, 69, 186, 10, 8, 48, 123, 199, 97, 43, 172, 220, 88, 78, 37, 10, 86, 60, 131, 67, 90, 68, 155, 98, 161, 245, 211, 254 ]
jpg
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED)
null
null
End of preview.

LPR crops: multi-country license plate crops

Cropped license plate images with plate text, from 91 countries, stored as Arrow IPC shards with one folder per country.

Rows 1,754,235 (1,683,308 after the recommended filters, see below)
Countries 91 (ISO-2, from the country=XX/ folder name)
Files 303 Arrow shards, about 36 GB
Splits (after filters) train 1,141,747 · val 212,755 · test 328,806, given in the split column
Largest countries CN 733k · BY 178k · AE 54k · KG 39k · AM 28k · KZ 28k · BR 25k

Layout

country=AD/autoria_eu-part-0.arrow
country=BY/platesmania-BY-part-0.arrow
...

The country is not stored as a column. Take it from the folder name.

Main columns

Column Type Notes
crop_bytes binary Plate crop, JPEG (crop_format)
render_bytes binary Optional rectified rendering, PNG (render_format)
plate_text string Label
original_text string Label before normalisation
layout string one_line / two_line / null
split string train / val / test
source_dataset, license string Where the row came from and its license (see Licensing)
label_pairing string bound / unverified / ambiguous
exclusion, crop_missing string Non-null means the row should be dropped
several_plates bool The frame contains more than one plate
plate_quad, char_boxes, crop_xyxy, frame_size, tilt_deg, … Geometry metadata

Recommended filters: non-empty plate_text; exclusion is null; crop_missing is null; several_plates is not true.

Download

pip install -U huggingface_hub
# all countries
hf download quangduc/lpr --repo-type dataset --local-dir data/crops
# selected countries
hf download quangduc/lpr --repo-type dataset --local-dir data/crops --include "country=BY/*" "country=AD/*"

Download script

Save as download_lpr.py:

#!/usr/bin/env python
"""Download quangduc/lpr (Arrow shards, one folder per country).

  python download_lpr.py --list                              # countries and sizes
  python download_lpr.py --out data/crops --countries BY AD  # subset
  python download_lpr.py --out data/crops                    # everything (~36 GB)
"""
import argparse
import re
from collections import defaultdict

from huggingface_hub import HfApi, snapshot_download

REPO_ID = "quangduc/lpr"


def list_countries(repo, revision):
    sizes, counts = defaultdict(int), defaultdict(int)
    for f in HfApi().list_repo_tree(repo, repo_type="dataset", revision=revision, recursive=True):
        m = re.match(r"country=([A-Z]{2})/.+\.arrow$", f.path)
        if m and getattr(f, "size", None) is not None:
            sizes[m.group(1)] += f.size
            counts[m.group(1)] += 1
    for c in sorted(sizes, key=lambda k: -sizes[k]):
        print(f"{c}  {counts[c]:3d} files  {sizes[c] / 2**30:7.2f} GiB")
    print(f"total: {len(sizes)} countries, {sum(counts.values())} files, "
          f"{sum(sizes.values()) / 2**30:.2f} GiB")


def main():
    p = argparse.ArgumentParser()
    p.add_argument("--repo", default=REPO_ID)
    p.add_argument("--revision", default="main")
    p.add_argument("--out", default="data/crops", help="Local folder; keeps the country=XX/ layout.")
    p.add_argument("--countries", nargs="*", default=None, help="ISO-2 codes, e.g. BY AD CN (default: all).")
    p.add_argument("--workers", type=int, default=8)
    p.add_argument("--list", action="store_true", help="List countries and sizes, then exit.")
    args = p.parse_args()

    if args.list:
        list_countries(args.repo, args.revision)
        return
    patterns = ([f"country={c.upper()}/*.arrow" for c in args.countries]
                if args.countries else ["country=*/*.arrow"])
    path = snapshot_download(repo_id=args.repo, repo_type="dataset", revision=args.revision,
                             local_dir=args.out, allow_patterns=patterns, max_workers=args.workers)
    print(f"downloaded to {path}")


if __name__ == "__main__":
    main()

Requires pip install -U huggingface_hub. If the repo is private, run hf auth login first or set HF_TOKEN.

Retry / keep in sync (rerun.sh)

Long downloads can fail on network errors. snapshot_download resumes and skips files that are already complete, so re-running the script is safe. rerun.sh runs a Python script in a loop: it waits success_wait seconds after a success and fail_wait seconds after a failure, and stops after max_runs runs (0 = never stop).

chmod +x rerun.sh
# retry every 5 min on failure, re-sync every hour after success; give all three numbers before `--`
nohup ./rerun.sh download_lpr.py 3600 300 0 -- --out data/crops > rerun.log 2>&1 &
# one country: 3 runs total, 5 min apart (later runs only fetch what's missing or new)
./rerun.sh download_lpr.py 300 300 3 -- --out data/crops --countries BY

Save as rerun.sh:

#!/usr/bin/env bash
# Re-run a Python script forever: wait SUCCESS_WAIT after success, FAIL_WAIT after failure.
# Usage: ./rerun.sh script.py [success_wait_sec] [fail_wait_sec] [max_runs] [-- script args...]
#   ./rerun.sh /home/jovyan/test.py 3600 300
#   ./rerun.sh test.py 3600 300 0 -- --country VN     # max_runs 0 = unlimited
#   nohup ./rerun.sh test.py 3600 300 > rerun.log 2>&1 &

set -u
SCRIPT="${1:?usage: $0 script.py [success_wait] [fail_wait] [max_runs] [-- args]}"
SUCCESS_WAIT="${2:-3600}"
FAIL_WAIT="${3:-300}"
MAX_RUNS="${4:-0}"
shift $(( $# < 4 ? $# : 4 ))
[ "${1:-}" = "--" ] && shift
ARGS=("$@")

PYTHON="${PYTHON:-python}"
trap 'echo "$(date "+%F %T") stopped"; exit 0' INT TERM

run=0
while true; do
  run=$((run + 1))
  echo "$(date '+%F %T') run #$run: $PYTHON $SCRIPT ${ARGS[*]:-}"
  "$PYTHON" "$SCRIPT" "${ARGS[@]}"
  code=$?
  if [ "$code" -eq 0 ]; then wait_s=$SUCCESS_WAIT; status=OK; else wait_s=$FAIL_WAIT; status="FAILED(exit $code)"; fi
  echo "$(date '+%F %T') run #$run $status; next run in ${wait_s}s"
  if [ "$MAX_RUNS" -gt 0 ] && [ "$run" -ge "$MAX_RUNS" ]; then echo "reached max_runs=$MAX_RUNS"; exit "$code"; fi
  sleep "$wait_s" &
  wait $!
done

Load

import io, glob, re
import pyarrow as pa
from PIL import Image

for path in sorted(glob.glob("data/crops/country=*/*.arrow")):
    country = re.search(r"country=([A-Z]{2})", path).group(1)
    table = pa.ipc.open_file(pa.memory_map(path)).read_all()
    row = table.slice(0, 1).to_pylist()[0]
    img = Image.open(io.BytesIO(row["crop_bytes"])).convert("RGB")
    print(country, row["plate_text"], row["split"], img.size)
    break

With 🤗 Datasets (streaming avoids downloading everything first):

from datasets import load_dataset
ds = load_dataset("quangduc/lpr", split="train", streaming=True)  # the HF "train" split here = all rows; filter on the `split` column

Licensing

Rows come from several sources with different licenses, given per row in the license column:

license Example sources
MIT ccpd
CC-BY-4.0 autoria_*
platesmania-attribution platesmania
proprietary-viettel viettel_combvt

Check the license of each row's source before using or redistributing it. Rows marked proprietary-viettel are not licensed for public redistribution unless you hold rights to them.

set -u SCRIPT="${1:?usage: $0 script.py [success_wait] [fail_wait] [max_runs] [-- args]}" SUCCESS_WAIT="${2:-3600}" FAIL_WAIT="${3:-300}" MAX_RUNS="${4:-0}" shift $(( $# < 4 ? $# : 4 )) [ "${1:-}" = "--" ] && shift ARGS=("$@")

PYTHON="${PYTHON:-python}" trap 'echo "$(date "+%F %T") stopped"; exit 0' INT TERM

run=0 while true; do run=$((run + 1)) echo "$(date '+%F %T') run #$run: $PYTHON $SCRIPT ${ARGS[*]:-}" "$PYTHON" "$SCRIPT" "${ARGS[@]}" code=$? if [ "$code" -eq 0 ]; then wait_s=$SUCCESS_WAIT; status=OK; else wait_s=$FAIL_WAIT; status="FAILED(exit $code)"; fi echo "$(date '+%F %T') run #$run $status; next run in ${wait_s}s" if [ "$MAX_RUNS" -gt 0 ] && [ "$run" -ge "$MAX_RUNS" ]; then echo "reached max_runs=$MAX_RUNS"; exit "$code"; fi sleep "$wait_s" & wait $! done

Downloads last month
97