--- license: mit task_categories: - object-detection tags: - document-layout-analysis - layout-detection - coco - benchmark size_categories: - n<1K --- # Chunkr Layout Bench - Open Source Subset Open-source subset of the **Chunkr Layout Detection benchmark dataset**, containing **360 professionally annotated documents** with **4,695 layout annotations** across **16 element classes**. This dataset benchmarks document layout detection models on diverse, real-world documents including **financial reports**, **legal contracts**, **research papers**, **medical records**, and more. It draws from a curated collection of **publicly accessible or research datasets** listed below (grouped by domain) and **augmented** with select government and open-document sources. --- ## ๐Ÿงฉ Dataset Overview
Dataset Overview
### Document Categories - Financial (16.7%), Legal (11.1%), Medical (10.3%), Government (8.1%) - Technical, Research, Historical, Real Estate, Education - Construction, Procurement, Tax, Billing, Supply Chain - Textbook, Consulting, Newspaper, Patent, Magazine, Miscellaneous ### Layout Diversity - **46%** Single-column documents - **42%** Multi-column documents - **12%** Double-column documents --- ## ๐Ÿ“Š Element Classes | Class | ID | Count | Description | |-------|:--:|------:|-------------| | **Text Block** | 1 | 1,717 | Main body text regions | | **List Item** | 11 | 769 | Bulleted or numbered list elements | | **Title** | 8 | 488 | Section and document titles | | **Line Number** | 10 | 310 | Line numbering (code, legal docs) | | **Page Number** | 12 | 260 | Page numbering elements | | **Header** | 7 | 217 | Document headers | | **Footer** | 2 | 196 | Document footers | | **Table** | 14 | 195 | Tabular data structures | | **Form Region** | 4 | 190 | Form fields and structures | | **Picture** | 13 | 91 | Images and photographs | | **Graphical Item** | 6 | 82 | Charts, diagrams, illustrations | | **Footnote** | 3 | 76 | Footnote text | | **Caption** | 0 | 52 | Figure and table captions | | **Formula** | 5 | 31 | Mathematical expressions | | **Legend** | 9 | 15 | Chart and diagram legends | | **Unknown** | 15 | 6 | Unclassified elements | --- ## ๐Ÿ“ Dataset Structure ``` chunkr-layout-bench-oss/ โ”œโ”€โ”€ images/ # 360 document images (PNG format) โ”œโ”€โ”€ _annotations.coco.json # COCO format annotations โ”œโ”€โ”€ metadata.csv # Image metadata (doc_category, width, height, id) โ””โ”€โ”€ analysis/ # Statistical analysis and visualizations โ”œโ”€โ”€ dataset_overview.png โ”œโ”€โ”€ source_raw_layouts.png โ”œโ”€โ”€ dataset_summary.png โ””โ”€โ”€ ... ```` --- ## ๐Ÿ–ผ๏ธ Sample Annotations
Sample Annotations
--- ## ๐Ÿ“ˆ Dataset Statistics
Dataset Summary
### Layout Examples
Source Raw Layouts
--- ## โš™๏ธ Usage ### Load with Hugging Face `datasets` ```python from datasets import load_dataset dataset = load_dataset("ChunkrAI/chunkr-layout-bench-oss") for item in dataset['train']: print(item['doc_category'], item['width'], item['height']) ```` ### With Supervision ```python import supervision as sv dataset = sv.DetectionDataset.from_coco( images_directory_path="images", annotations_path="_annotations.coco.json" ) print(f"Dataset size: {len(dataset)}") print(f"Classes: {dataset.classes}") ``` ### Convert to YOLO Format ```python import supervision as sv dataset = sv.DetectionDataset.from_coco( images_directory_path="images", annotations_path="_annotations.coco.json" ) dataset.as_yolo( images_directory_path="yolo/images", annotations_directory_path="yolo/labels", data_yaml_path="yolo/data.yaml" ) ``` --- ## ๐Ÿ“š Data Attribution and References The following tables summarize **datasets and sources** referenced for sampling, benchmarking, or cross-domain balancing in Chunkr Layout Bench OSS. All sources are **publicly accessible** for research or under permissive licenses (MIT, CC-BY, public domain). --- ### ๐Ÿงพ Financial & Business Documents | Dataset / Source | Domain | Access Location | | -------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------- | | **DocLayNet (IBM)** | Finance, Legal, Patents, Technical | [Hugging Face โ€“ ds4sd/DocLayNet](https://huggingface.co/datasets/ds4sd/DocLayNet) | | **IIIT-AR-13K** | Financial Reports, Business | [IIIT Hyderabad / GitHub](https://github.com/iiit-datasets) | | **Kleister Charity / NDA** | Financial & Legal Documents | [GitHub โ€“ applicaai/kleister-nda](https://github.com/applicaai/kleister-nda) | | **SEC Filings (EDGAR)** | Corporate Finance | [SEC EDGAR Bulk API](https://www.sec.gov/edgar/searchedgar/companysearch.html) | | **McKinsey, BCG, Deloitte Insights Reports** | Consulting, Business Strategy | BCG Insights / McKinsey / Deloitte Portals | | **SynFinTabs** | Synthetic Financial Tables | [Hugging Face](https://huggingface.co/datasets) | | **RVL-CDIP** | Business Records, Legal | [Hugging Face โ€“ aharley/rvl_cdip](https://huggingface.co/datasets/aharley/rvl_cdip) | --- ### โš–๏ธ Legal, Government & Regulatory | Dataset / Source | Domain | Access Location | | -------------------------------------- | ------------------------- | --------------------------------------------------------------------- | | **FUNSD** | Government Forms | [FUNSD Dataset Page](https://guillaumejaume.github.io/FUNSD/) | | **NIST Tax Forms (1988)** | Tax / Payroll | [NIST Special DB 2](https://www.nist.gov/srd/nist-special-database-2) | | **CourtListener RECAP Archive** | Legal Filings, Case Law | [Free Law Project](https://www.courtlistener.com/) | | **Cook County Contracts & Amendments** | Legal / Government | [Cook County Open Data Portal](https://datacatalog.cookcountyil.gov/) | | **GovDocs1 Million Corpus** | Government / Multi-Domain | [DigitalCorpora Repository](https://digitalcorpora.org/) | --- ### ๐Ÿฅ Medical & Healthcare | Dataset / Source | Domain | Access Location | | ------------------------------------------------------- | ---------------------- | ---------------------------------------------------------------- | | **Synthetic Medical Forms / OMR Scanned Medical Forms** | Healthcare / Admin | [Hugging Face Datasets](https://huggingface.co/datasets) | | **Synthea Synthetic Patient Records** | Healthcare (EHR) | [AWS Open Data Registry](https://registry.opendata.aws/synthea/) | | **Blue Cross Blue Shield Sample EOBs** | Healthcare / Insurance | Public Sample PDFs | | **Handwritten Rx (Kaggle)** | Prescriptions | [Kaggle Dataset](https://www.kaggle.com/) | --- ### ๐Ÿข Real Estate, Construction & Engineering | Dataset / Source | Domain | Access Location | | ------------------------------------------ | --------------------------- | ------------------------------------------------------------- | | **CubiCasa5K** | Floor Plans, Real Estate | [GitHub โ€“ CubiCasa5k](https://github.com/CubiCasa/CubiCasa5k) | | **CISOL / FloorPlanCAD** | Construction / Supply Chain | [Zenodo DOI 10.5281/zenodo.10829550](https://zenodo.org/) | | **Machine Learning STRUCTural Floor Plan** | Engineering / CAD | [GitHub Repository](https://github.com/) | | **Lease Agreements / HUD Forms** | Real Estate / Legal | [HUD.gov Forms](https://www.hud.gov/forms) | | **Property Records / PhilaDox** | Land Records | [PhilaDox OpenData Portal](https://opendataphilly.org/) | --- ### ๐Ÿ“š Academic, Historical & Educational | Dataset / Source | Domain | Access Location | | ----------------------------------------------------- | -------------------------- | ------------------------------------------------------------------------------------------ | | **DocBank** | Academic (ArXiv Preprints) | [GitHub โ€“ doc-analysis/DocBank](https://github.com/doc-analysis/DocBank) | | **PubLayNet** | Scientific Journals | [IBM DAX Project / Kaggle](https://www.kaggle.com/datasets/ibm-object-detection-publaynet) | | **U-DIADS-Bib / DIVA-HisDB / HJDataset** | Historical Documents | [ICDAR / UniFr / Harvard HisDoc Projects](https://icdar.org/) | | **Internet Archive "Magazine Rack" & Textbook Scans** | Magazines, Textbooks | [Internet Archive](https://archive.org/) | | **Standardized Exam Papers** | Education | [College Board, ACT Archives](https://www.collegeboard.org/) | --- ### ๐Ÿงฎ Technical, Manufacturing & Miscellaneous | Dataset / Source | Domain | Access Location | | ------------------------------------------------ | --------------------------- | ------------------------------------------------------- | | **PRImA Layout Analysis** | Technical Publications | [PRImA Dataset](https://www.primaresearch.org/) | | **Safety Data Sheets (SDS) Online Repositories** | Manufacturing / Chemical | [SDSManager / Chemical Safety](https://sdsmanager.com/) | | **Disassembly BOM Dataset** | Manufacturing / Electronics | [Figshare](https://figshare.com/) | | **Tobacco3482 / Tobacco800** | Business Records | [Kaggle Dataset](https://www.kaggle.com/) | | **Customs Import Declarations (Synthetic)** | Logistics / Customs | [GitHub Dataset](https://github.com/) | --- ## ๐Ÿงพ License **MIT License** Free to use for **research and commercial purposes**. Where applicable, individual third-party datasets retain their **original licenses**, all of which allow redistribution or benchmarking under fair-use or research terms. --- ## ๐Ÿ“Ž Citation If you use this dataset or benchmark, please cite: ``` @dataset{chunkr_layout_bench_oss_2025, title = {Chunkr Layout Bench - Open Source Subset}, author = {ChunkrAI}, year = {2025}, publisher = {Lumina AI Inc.}, license = {MIT}, url = {https://huggingface.co/datasets/ChunkrAI/chunkr-layout-bench-oss} } ```