# Arabic Document OCR Inspection Kit v0.1

A small, free kit from Bayanat Labs for checking how an OCR engine or vision-language model reads Arabic business documents: the text, the reading order, the tables and the field values, and whether it flags a total that does not add up. It also shows a page-record format to agree with a data supplier.

Page: https://www.bayanatlabs.com/research/arabic-document-ocr-kit

## Files

| File | Contents |
|---|---|
| `pages/D01.png` ... `pages/D06.png` | 6 synthetic document pages, 1000 x 1400 PNG: two bilingual invoices from one template (D06 blurred, with a total that does not add up), a shop receipt in Eastern Arabic digits, a maintenance request form, a delivery note with a bilingual table and a formal letter with a stamp |
| `fields.jsonl` | 22 field items with Arabic and English questions, the value as printed, a normalized value, evidence region IDs and the error codes each item can catch; 2 fields are empty on the page |
| `annotations.jsonl` | One record per page in the `schema.json` format: 169 text regions with boxes, transcriptions, reading order, script and digit tags (22 use Eastern Arabic digits), 52 table cells with row and column, 8 non-text regions (3 checkboxes, 4 empty lines, 1 stamp), fields, validation checks, source type, issuer group, template, split group, capture and rights |
| `rubric.md` | Inspection protocol, normalization policy, 18 error codes, evidence and empty-field rules, and the record checks to agree with a supplier |
| `schema.json` | JSON Schema (draft 2020-12) for one annotated page record |
| `SHA256SUMS.txt` | Checksums |
| `LICENSE.txt` | CC BY 4.0 |

Boxes are `[x, y, width, height]` in pixels from the top-left corner of the 1000 x 1400 PNG. Transcriptions are in logical (reading) order with digits and separators as printed. Table columns are counted from the right.

## What it is not

- **Not scans.** The pages are rendered from HTML with one typeface. D06 adds blur and low contrast, but real scans, phone photos, faxes and handwriting are harder. Failing here is a clear warning sign; passing proves little about your documents.
- **Not a sample of a Bayanat dataset.** Bayanat Documents is built to order. The businesses, people, numbers and dates were made up for this kit, every page is marked `"source": {"type": "synthetic"}` and `"illustrative": true`, and the invoice and receipt pages are specimens, not valid tax invoices.
- **Not a benchmark.** Twenty-two items show where a model fails; they do not measure how often. Add your own pages in the same format.
- **No handwriting.** Entries on the form are typed in a second colour to stand for filled-in values.

## Cite

Bayanat Labs (2026). Arabic Document OCR Inspection Kit v0.1. https://www.bayanatlabs.com/research/arabic-document-ocr-kit

Licensed CC BY 4.0. Corrections and requests: hello@bayanatlabs.com
