Datasets:
Commit ·
bf03cf9
0
Parent(s):
Broken QR Codes (104): images, byte truth where a public reference decoder reads it, geometry, 4 reference decoders
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +60 -0
- LICENSE +31 -0
- README.md +138 -0
- data/0.jpg +3 -0
- data/1.jpg +3 -0
- data/10.jpg +3 -0
- data/100.jpg +3 -0
- data/101.jpg +3 -0
- data/102.jpg +3 -0
- data/103.jpg +3 -0
- data/104.jpg +3 -0
- data/105.jpg +3 -0
- data/11.jpg +3 -0
- data/12.jpg +3 -0
- data/13.jpg +3 -0
- data/14.jpg +3 -0
- data/15.jpg +3 -0
- data/16.jpeg +3 -0
- data/17.jpg +3 -0
- data/18.jpg +3 -0
- data/19.jpg +3 -0
- data/2.jpg +3 -0
- data/20.jpg +3 -0
- data/21.jpg +3 -0
- data/22.jpg +3 -0
- data/23.jpg +3 -0
- data/24.jpg +3 -0
- data/25.jpg +3 -0
- data/26.jpg +3 -0
- data/27.jpg +3 -0
- data/28.jpg +3 -0
- data/29.jpg +3 -0
- data/3.jpg +3 -0
- data/30.jpg +3 -0
- data/31.jpg +3 -0
- data/32.jpeg +3 -0
- data/33.jpg +3 -0
- data/34.jpg +3 -0
- data/35.jpg +3 -0
- data/36.jpg +3 -0
- data/37.jpg +3 -0
- data/38.jpg +3 -0
- data/39.jpg +3 -0
- data/4.jpg +3 -0
- data/40.jpg +3 -0
- data/41.jpg +3 -0
- data/42.jpg +3 -0
- data/43.jpg +3 -0
- data/44.jpg +3 -0
- data/45.jpg +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LICENSING OF THIS DATASET IS SPLIT. Read both halves.
|
| 2 |
+
|
| 3 |
+
1. THE ANNOTATIONS -- Creative Commons Attribution 4.0 International (CC BY 4.0)
|
| 4 |
+
|
| 5 |
+
Everything in data/metadata.jsonl that is original work: the established
|
| 6 |
+
payloads and payload byte strings, the corner quads, finder-pattern centres,
|
| 7 |
+
QR versions, pixels-per-module figures, provenance fields, and the per-image
|
| 8 |
+
reference-decoder results. Also this README and LICENSE.
|
| 9 |
+
|
| 10 |
+
You may share and adapt these with attribution.
|
| 11 |
+
Full text: https://creativecommons.org/licenses/by/4.0/
|
| 12 |
+
|
| 13 |
+
2. THE IMAGES -- NOT LICENSED BY THE PUBLISHER OF THIS DATASET
|
| 14 |
+
|
| 15 |
+
The 104 JPEG files are not uniformly owned by the publisher and no licence is
|
| 16 |
+
or can be granted over them here. They were collected from public web sources
|
| 17 |
+
as examples of QR codes that fail to decode -- including artistic and
|
| 18 |
+
generated QR codes whose individual authorship is not documented -- and are
|
| 19 |
+
made available for research and benchmarking purposes.
|
| 20 |
+
|
| 21 |
+
No claim of ownership is made. If you own one of these images and want it
|
| 22 |
+
removed, open a discussion on the dataset repository and it will be taken
|
| 23 |
+
down.
|
| 24 |
+
|
| 25 |
+
If your use is not research or benchmarking, clear the images yourself.
|
| 26 |
+
|
| 27 |
+
3. PAYLOAD CONTENTS
|
| 28 |
+
|
| 29 |
+
Decoded payloads are reproduced verbatim, including live third-party URLs,
|
| 30 |
+
because a benchmark with rewritten payloads cannot verify a decoder. No URL
|
| 31 |
+
here is endorsed, checked, or maintained by the publisher.
|
README.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed-annotations-cc-by-4.0
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
pretty_name: Broken QR Codes (104) — a hard real-world QR benchmark
|
| 6 |
+
task_categories:
|
| 7 |
+
- image-to-text
|
| 8 |
+
- object-detection
|
| 9 |
+
tags:
|
| 10 |
+
- qr-code
|
| 11 |
+
- barcode
|
| 12 |
+
- benchmark
|
| 13 |
+
- document-understanding
|
| 14 |
+
- computer-vision
|
| 15 |
+
- robustness
|
| 16 |
+
size_categories:
|
| 17 |
+
- n<1K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: test
|
| 22 |
+
path: data/**
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Broken QR Codes (104)
|
| 26 |
+
|
| 27 |
+
**104 real QR code images that ordinary decoders fail on**, with byte-level ground
|
| 28 |
+
truth where a public reference decoder could establish it, geometric annotations, and
|
| 29 |
+
per-image results for four reference decoders.
|
| 30 |
+
|
| 31 |
+
This is a **test set, not a training set**. Every image here was collected *because*
|
| 32 |
+
something failed on it, so the distribution is deliberately adversarial rather than
|
| 33 |
+
representative.
|
| 34 |
+
|
| 35 |
+
## Why this is hard
|
| 36 |
+
|
| 37 |
+
**78 of the 104 images are read by none of the four reference decoders**: Apple
|
| 38 |
+
Vision, Apple CIDetector, and WeChat's CNN and classical detectors. The best of them,
|
| 39 |
+
Apple Vision, reads 21.
|
| 40 |
+
|
| 41 |
+
The failure modes are the interesting part: artistic QR codes where the module grid is
|
| 42 |
+
deliberately obscured by generated imagery, physical damage, extreme perspective, low
|
| 43 |
+
contrast, motion blur, partial occlusion, screen glare, and resolutions from 0.05 to 16
|
| 44 |
+
megapixels.
|
| 45 |
+
|
| 46 |
+
## What's in each row
|
| 47 |
+
|
| 48 |
+
| field | notes |
|
| 49 |
+
|---|---|
|
| 50 |
+
| `image` | the picture itself |
|
| 51 |
+
| `file_name`, `image_id`, `width`, `height` | |
|
| 52 |
+
| `has_payload`, `payload`, `payload_bytes_hex` | **26 of 104** have a payload: the images at least one reference decoder reads |
|
| 53 |
+
| `qr_version` | QR version, on **19** images |
|
| 54 |
+
| `quad` | the symbol's four corners in pixels, on **22** images |
|
| 55 |
+
| `finder_centers` | the three finder-pattern centres, on **19** images |
|
| 56 |
+
| `u_px_per_module` | pixels per module, on **19** images |
|
| 57 |
+
| `quad_source` | the reference decoder whose reading gave the geometry |
|
| 58 |
+
| `solved_by_*` | four booleans, one per reference decoder |
|
| 59 |
+
| `n_decoders_solving` | 0–4 |
|
| 60 |
+
|
| 61 |
+
### Only 26 images can be checked
|
| 62 |
+
|
| 63 |
+
A payload is given only where a reference decoder reads the code, so **26 is the
|
| 64 |
+
ceiling for scoring**. A decoder that reads one of the other 78 images cannot be
|
| 65 |
+
credited from this dataset, because nothing here says what the right content is.
|
| 66 |
+
Report the denominator you used.
|
| 67 |
+
|
| 68 |
+
`payload` and `payload_bytes_hex` are not equally populated: 26 rows carry a payload
|
| 69 |
+
string and 20 carry the raw bytes. Where both exist they agree; where only the string
|
| 70 |
+
exists, binary payloads may not round-trip through UTF-8, so **compare bytes when you
|
| 71 |
+
have them**.
|
| 72 |
+
|
| 73 |
+
## Reference decoder results
|
| 74 |
+
|
| 75 |
+
Measured on one machine (Apple M2, macOS 14.3.1), decode call only, image already
|
| 76 |
+
resident in memory.
|
| 77 |
+
|
| 78 |
+
| decoder | solves / 104 | false | p50 µs |
|
| 79 |
+
|---|---:|---:|---:|
|
| 80 |
+
| Apple Vision | 21 | 0 | 11,195 |
|
| 81 |
+
| Apple CIDetector | 18 | 0 | 7,168 |
|
| 82 |
+
| WeChat (CNN) | 14 | 0 | — |
|
| 83 |
+
| WeChat (classical) | 13 | 0 | — |
|
| 84 |
+
|
| 85 |
+
Apple returns a string plus a raw codeword stream and is scored on both surfaces;
|
| 86 |
+
WeChat is string-only.
|
| 87 |
+
|
| 88 |
+
## Usage
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
from datasets import load_dataset
|
| 92 |
+
|
| 93 |
+
ds = load_dataset("devmandan/broken-qr-codes-104", split="test")
|
| 94 |
+
|
| 95 |
+
# the checkable subset: the only fair denominator
|
| 96 |
+
checkable = ds.filter(lambda r: r["has_payload"]) # 26
|
| 97 |
+
|
| 98 |
+
# the images every reference decoder failed
|
| 99 |
+
unsolved = ds.filter(lambda r: r["n_decoders_solving"] == 0) # 78
|
| 100 |
+
|
| 101 |
+
# geometry-supervised subset
|
| 102 |
+
geo = ds.filter(lambda r: r["quad"] is not None) # 22
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
## Provenance, licensing, and takedown
|
| 106 |
+
|
| 107 |
+
**Please read this before redistributing.**
|
| 108 |
+
|
| 109 |
+
The **annotations** in this dataset — payloads, quads, finder centres, versions,
|
| 110 |
+
module scales, decoder results — are original work and are offered under
|
| 111 |
+
**CC BY 4.0**.
|
| 112 |
+
|
| 113 |
+
The **images** are a different matter and are not uniformly owned by the
|
| 114 |
+
publisher of this dataset. They were collected from public web sources as
|
| 115 |
+
examples of QR codes that fail to decode, including artistic/generated QR codes
|
| 116 |
+
whose individual authorship is not documented. They are published here for
|
| 117 |
+
**research and benchmarking**, which is the purpose for which they were
|
| 118 |
+
gathered. No claim of ownership is made over them.
|
| 119 |
+
|
| 120 |
+
If you own an image in this set and want it removed, open a discussion on this
|
| 121 |
+
repository and it will be taken down.
|
| 122 |
+
|
| 123 |
+
**Payload contents are real.** Several decoded payloads are live third-party URLs
|
| 124 |
+
that were encoded in the original codes, some carrying opaque identifiers. They
|
| 125 |
+
are reproduced verbatim because a QR benchmark whose payloads have been rewritten
|
| 126 |
+
cannot be used to check a decoder. Do not treat any URL here as endorsed, safe, or
|
| 127 |
+
maintained, and be careful about resolving them automatically.
|
| 128 |
+
|
| 129 |
+
## Citation
|
| 130 |
+
|
| 131 |
+
```bibtex
|
| 132 |
+
@misc{broken_qr_codes_104,
|
| 133 |
+
title = {Broken QR Codes (104): a hard real-world QR decoding benchmark},
|
| 134 |
+
author = {Legut, Daniel},
|
| 135 |
+
year = {2026},
|
| 136 |
+
url = {https://huggingface.co/datasets/devmandan/broken-qr-codes-104}
|
| 137 |
+
}
|
| 138 |
+
```
|
data/0.jpg
ADDED
|
Git LFS Details
|
data/1.jpg
ADDED
|
Git LFS Details
|
data/10.jpg
ADDED
|
Git LFS Details
|
data/100.jpg
ADDED
|
Git LFS Details
|
data/101.jpg
ADDED
|
Git LFS Details
|
data/102.jpg
ADDED
|
Git LFS Details
|
data/103.jpg
ADDED
|
Git LFS Details
|
data/104.jpg
ADDED
|
Git LFS Details
|
data/105.jpg
ADDED
|
Git LFS Details
|
data/11.jpg
ADDED
|
Git LFS Details
|
data/12.jpg
ADDED
|
Git LFS Details
|
data/13.jpg
ADDED
|
Git LFS Details
|
data/14.jpg
ADDED
|
Git LFS Details
|
data/15.jpg
ADDED
|
Git LFS Details
|
data/16.jpeg
ADDED
|
Git LFS Details
|
data/17.jpg
ADDED
|
Git LFS Details
|
data/18.jpg
ADDED
|
Git LFS Details
|
data/19.jpg
ADDED
|
Git LFS Details
|
data/2.jpg
ADDED
|
Git LFS Details
|
data/20.jpg
ADDED
|
Git LFS Details
|
data/21.jpg
ADDED
|
Git LFS Details
|
data/22.jpg
ADDED
|
Git LFS Details
|
data/23.jpg
ADDED
|
Git LFS Details
|
data/24.jpg
ADDED
|
Git LFS Details
|
data/25.jpg
ADDED
|
Git LFS Details
|
data/26.jpg
ADDED
|
Git LFS Details
|
data/27.jpg
ADDED
|
Git LFS Details
|
data/28.jpg
ADDED
|
Git LFS Details
|
data/29.jpg
ADDED
|
Git LFS Details
|
data/3.jpg
ADDED
|
Git LFS Details
|
data/30.jpg
ADDED
|
Git LFS Details
|
data/31.jpg
ADDED
|
Git LFS Details
|
data/32.jpeg
ADDED
|
Git LFS Details
|
data/33.jpg
ADDED
|
Git LFS Details
|
data/34.jpg
ADDED
|
Git LFS Details
|
data/35.jpg
ADDED
|
Git LFS Details
|
data/36.jpg
ADDED
|
Git LFS Details
|
data/37.jpg
ADDED
|
Git LFS Details
|
data/38.jpg
ADDED
|
Git LFS Details
|
data/39.jpg
ADDED
|
Git LFS Details
|
data/4.jpg
ADDED
|
Git LFS Details
|
data/40.jpg
ADDED
|
Git LFS Details
|
data/41.jpg
ADDED
|
Git LFS Details
|
data/42.jpg
ADDED
|
Git LFS Details
|
data/43.jpg
ADDED
|
Git LFS Details
|
data/44.jpg
ADDED
|
Git LFS Details
|
data/45.jpg
ADDED
|
Git LFS Details
|