Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
232
3.58k
json
stringlengths
1.95k
289k
{"page_information":{"width":794,"height":1123,"dpi":155,"image_width":957,"image_height":1309,"id":"000000","seed":"0-0","format":"a4","template":"paper_thesis_chapter","margin":{"vertical":45,"horizontal":51},"font_scale":1.0,"masthead":false,"columns":1,"flow":"rtl","elements":11,"background_image":null,"dark":false...
{"page_information":{"width":794,"height":1123,"dpi":170,"image_width":1692,"image_height":2287,"id":"000001","seed":"0-1","format":"a4","template":"flow","margin":{"vertical":46,"horizontal":68},"font_scale":1.0,"masthead":false,"columns":2,"flow":"rtl","elements":14,"background_image":null,"dark":false,"shapes":null,...
"{\"page_information\":{\"width\":1191,\"height\":1776,\"dpi\":136,\"image_width\":861,\"image_heigh(...TRUNCATED)
"{\"page_information\":{\"width\":794,\"height\":1123,\"dpi\":141,\"image_width\":846,\"image_height(...TRUNCATED)
"{\"page_information\":{\"width\":794,\"height\":1123,\"dpi\":167,\"image_width\":1644,\"image_heigh(...TRUNCATED)
"{\"page_information\":{\"width\":794,\"height\":1123,\"dpi\":136,\"image_width\":1092,\"image_heigh(...TRUNCATED)
"{\"page_information\":{\"width\":528,\"height\":816,\"dpi\":161,\"image_width\":886,\"image_height\(...TRUNCATED)
"{\"page_information\":{\"width\":528,\"height\":816,\"dpi\":150,\"image_width\":1127,\"image_height(...TRUNCATED)
"{\"page_information\":{\"width\":528,\"height\":816,\"dpi\":136,\"image_width\":788,\"image_height\(...TRUNCATED)
"{\"page_information\":{\"width\":528,\"height\":816,\"dpi\":160,\"image_width\":1180,\"image_height(...TRUNCATED)
End of preview. Expand in Data Studio

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 has bbox and quad.

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-verify and 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.

Downloads last month
562