Datasets:
|
Download README.md from lubna888/synth-ocr-augmented: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/datasets/lubna888/synth-ocr-augmented/resolve/main/README.md
- Command line
-
hf download hf://datasets/lubna888/synth-ocr-augmented/README.md
-
curl -L -o README.md https://huggingface.co/datasets/lubna888/synth-ocr-augmented/resolve/main/README.md
1.76 kB
metadata
configs:
- config_name: default
data_files:
- split: train
path: data/robust/*.parquet
language:
- ar
- en
- zh
task_categories:
- image-to-text
tags:
- ocr
- synthetic
- document-understanding
- augmentation
size_categories:
- 10K<n<100K
Synthetic OCR — robust (augmented) pages
30,000 synthetic document pages (Arabic, English, Chinese) rendered from HTML layouts with the
html2md pipeline (str-project), then augmented to look like real-world captures.
Same schema as FaisalHejary/synth_OCR,
so the two can be merged with concatenate_datasets.
Columns
image: the page (PNG).json: the full annotation as a JSON string:page_information,word_bboxes,line_bboxes,para_bboxes,relation_graph,element_bboxes. Every box hasbboxandquad.
Augmentation
Every page is augmented; page_information records exactly what was applied.
- Page mix: ~40% clean, ~30% scanned, ~30% photographed (wood-table backgrounds, CC0 textures).
- Augraphy pixel effects (BadPhotoCopy, BleedThrough, Brightness, InkBleed, Letterpress, ShadowCast, ...) and spatial effects (BookBinding, Folding, Geometric, PageBorder; boxes moved with the page).
- Custom effects: depth of field, screen photo, dark mode, stroke thin/bold, thermal fade.
- Low resolution on ~20% of pages.
- Every page passed
html2md-verifyand a final legibility check (unreadable pages were removed and regenerated).
Load
from datasets import load_dataset
import json
ds = load_dataset("lubna888/synth-ocr-augmented", split="train")
row = ds[0]
ann = json.loads(row["json"])
Note: page ids are unique within this dataset, but not across datasets after merging.