Datasets:

Modalities:
Image
ArXiv:
Libraries:
Datasets
License:
DigitizerBench / README.md
DLDLD111's picture
Style the DigitizerBench card with official LinePilot visuals
0410ce1 verified
|
Raw History Blame Contribute Delete
7.19 kB
---
license: apache-2.0
pretty_name: DigitizerBench
tags:
- benchmark
- plot-digitization
- scientific-figures
- synthetic
- computer-vision
size_categories:
- 1K<n<10K
---
<p align="center">
<img src="https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/assets/banner.png" alt="LinePilot Digitizer" width="820">
</p>
<h1 align="center">DigitizerBench</h1>
<p align="center"><strong>A benchmark for recovering numerical curves from line-plot images</strong></p>
<p align="center">
<a href="https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/full.zip"><img src="https://img.shields.io/badge/Download%20Full-2%2C980%20plots-004E60" alt="Download DigitizerBench Full, 2,980 plots"></a>
<a href="https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/lite.zip"><img src="https://img.shields.io/badge/Download%20Lite-60%20plots-007F87" alt="Download DigitizerBench Lite, 60 plots"></a>
<a href="https://arxiv.org/abs/2609.19377"><img src="https://img.shields.io/badge/arXiv-2609.19377-BA0C2F" alt="Read the LinePilot paper on arXiv"></a>
</p>
<p align="center">
<a href="https://rayana07.github.io/LinePilot/">Project website</a> ·
<a href="https://github.com/RayanA07/LinePilot">GitHub</a> ·
<a href="https://arxiv.org/pdf/2609.19377">Paper PDF</a> ·
<a href="https://rayana07.github.io/LinePilot/assets/LinePilot_Online_Appendix.pdf">Online appendix</a>
</p>
Each PNG comes with the original curve coordinates and the rendered tick positions. Use them to evaluate curve recovery and axis calibration separately.
## Download and quick start
Choose **Lite** for a 60-image human-guided comparison or a quick pipeline check. Choose **Full** for automatic evaluation and analysis across rendering and signal conditions. Both downloads include their ground truth.
| Download | Images | ZIP size | Use |
| --- | ---: | ---: | --- |
| [Lite](https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/lite.zip) | 60 | 16.3 MiB | The fixed, outcome-independent set used in the paper's human-guided comparison |
| [Full](https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/full.zip) | 2,980 | 715 MiB | 2,500 core plots and 480 matched rerenderings for automatic evaluation |
Download and unpack Lite, then load a plot and its reference data. While the repository is private, use `hf auth login` with an account that has access.
```bash
python -m pip install huggingface_hub pandas pyarrow pillow
hf download LinePilot/DigitizerBench lite.zip --repo-type dataset --local-dir digitizerbench
python -m zipfile -e digitizerbench/lite.zip digitizerbench
```
```python
from pathlib import Path
import pandas as pd
from PIL import Image
root = Path("digitizerbench/lite")
manifest = pd.read_parquet(root / "manifest.parquet")
case = manifest.iloc[0]
image = Image.open(root / case["image_path"])
image_filter = [("image_id", "==", case["image_id"])]
curves = pd.read_parquet(root / "ground_truth.parquet", filters=image_filter)
ticks = pd.read_parquet(root / "tick_ground_truth.parquet", filters=image_filter)
image.show()
for line_id, points in curves.groupby("line_id"):
print(line_id, points.sort_values("sample_index")[["x", "y"]].head())
```
For Full, replace `lite.zip` and `digitizerbench/lite` with `full.zip` and `digitizerbench/full`.
## From a plot image to recovered curves
The Altair example below shows two overlapping series from DigitizerBench and the corresponding LinePilot OCR recovery from Figure 1b of the paper.
| Benchmark input | LinePilot OCR recovery |
| :---: | :---: |
| <img src="https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/assets/example-original.png" alt="Original Altair plot with two overlapping curves" width="280"> | <img src="https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/assets/example-linepilot-ocr.png" alt="LinePilot OCR recovery for the two curves in the original Altair plot" width="280"> |
<p align="center">
<img src="https://huggingface.co/datasets/LinePilot/DigitizerBench/resolve/main/assets/demo.gif" alt="Animated LinePilot illustration showing a line traced column by column and its coordinates written to CSV" width="420">
<br>
<sub>LinePilot follows each curve across the image and exports its calibrated x, y coordinates.</sub>
</p>
## Files and ground truth
| File | Contents |
| --- | --- |
| `images/` | Input PNGs organized by renderer and plot type |
| `manifest.parquet` | One row per image. Join on `image_id` and resolve `image_path` relative to the extracted Full or Lite folder. Includes `base_id`, renderer, plot type, line count, factor settings and seeds. |
| `ground_truth.parquet` | One row per curve sample. Group by `image_id` and `line_id`, then order by `sample_index`. Use `x` and `y` as the reference in data coordinates. The remaining fields describe the signal, baseline, noise and stacked offsets. |
| `tick_ground_truth.parquet` | Visible ticks keyed by `image_id`, `axis` and `tick_index`. Includes the rendered label, numeric value and tick position in top-left-origin image pixels. |
| `factor_levels.json` | Factor definitions and levels |
| `design/` | Full only. Base configurations, orthogonal-panel assignments, bridge manifest and design summary. |
## Benchmark design and evaluation
The plots are synthetic. They span single, overlapping and stacked layouts rendered in Matplotlib, Plotly and Altair. Controlled factors include curve shape, baseline, noise, stroke width, color, DPI, blur, figure dimensions, tick styling and axis ranges. Full uses four strength-3 orthogonal-array panels. Each of the 60 Lite configurations has nine renderer × plot-type variants in Full, including its Lite image.
Run your digitizer on the PNGs, then join the recovered data to ground truth by image and match the recovered curves to the reference lines. For the paper's protocol, report failure-penalized capped normalized RMSE (FPC-NRMSE) alongside output success, trusted usability and points per line. FPC-NRMSE assigns unit loss to missing, unusable or catastrophically inaccurate output. See the paper and appendix for the matching and scoring rules.
Lite is nested within Full. For custom train/test partitions, keep all variants sharing a `base_id` together. Results characterize recovery on these controlled renders. Scanned pages, compression and real-world annotation styles require separate evaluation.
## Citation
If you use DigitizerBench, cite *LinePilot Digitizer: Line-Plot Recovery with Manual and Automatic Calibration*. For the digitizer itself, see the [LinePilot releases](https://github.com/RayanA07/LinePilot/releases/latest). Report benchmark or dataset issues on [GitHub](https://github.com/RayanA07/LinePilot/issues).
```bibtex
@article{ma2026linepilot,
title = {LinePilot Digitizer: Line-Plot Recovery with Manual and Automatic Calibration},
author = {Ma, Fengbo and Akhtar, Rayan and Joshi, Aakash H. and Li, Xiaoting and
Sun, Haijian and Xiang, Zhen and Chen, Xianyan and Zhao, Yiping},
journal = {arXiv preprint arXiv:2609.19377},
year = {2026},
doi = {10.48550/arXiv.2609.19377}
}
```