2 · Interactive Document Lens & Structured Reconstruction Studio
Initialise both models above to scan documents into linked tables, Markdown, CSV, and JSON.
Initialise both models above and run a scan to link document pixels 1:1 with table cells and Markdown.
// Run a scan to generate GitHub Flavored Markdown.
// Run a scan to generate RFC 4180 CSV.
// Run a scan to inspect structured JSON output.
OCR Boxes—
Table Grid—
Stage 1 OCR—
Stage 2 Table—
Total Scan—
Mean OCR Conf—
signature showcase · document ai · PP-OCRv5 Mobile + Table Transformer v1.1 · 51.8 MB total · 100% local
Drop an invoice, lab panel, schedule, or engineering report onto the studio lens — or test the
four high-DPI procedural documents above. Two chained local neural networks read every text line
and parse every row, column, and header right inside your browser, spatially joining them into a
1:1 cross-linked interactive table, clean GitHub Markdown,
RFC 4180 CSV, and JSON with zero bytes uploaded.
Inspect the Spatial-Join Reconstruction Code
Show spatial-join reconstruction engine (scanner-core.mjs)Show aligned GitHub Markdown exporter (scanner-core.mjs)
Architecture & Honest Trade-Offs
51.8 MB Total, Zero Duplicate Weights
Both workers are imported directly from their standalone model suites and reuse the exact
Cache Storage keys. Running PP-OCRv5 Mobile (21.5 MB) and Table Transformer Structure v1.1
(30.3 MB) in separate Web Workers keeps the main UI thread smooth during heavy inference.
Spatial Join & Bidirectional Spotlight
PP-OCRv5 reads text lines without knowing which column they belong to; Table Transformer
parses rows, columns, and headers without reading a single character. Joining their pixel
coordinates produces a 1:1 linked grid where every Markdown cell traces back to its exact
pixel bounding box.
Honest Borderless Fallback
Table Transformer Structure v1.1 excels on cropped or prominent bordered tables. When a
user uploads a borderless receipt or runs OCR Only without neural table bands, the spatial
engine falls back transparently to horizontal-gutter clustering and labels the grid source
as fallback.
Strict On-Device Document Privacy
Financial reports, clinical lab panels, and wholesale invoices stay exclusively inside
your browser's memory. Exporting Markdown, CSV, or JSON synthesizes local Blob downloads
with zero network requests.