Demo of StarDoc-AI/NaviDC-OCR, a 1.2B document-parsing vision-language model that unifies digital and camera-captured documents (paper · code).
The app follows the authors' two-stage pipeline:
Detection mode returns axis-aligned boxes (digital
pages, flat scans); Segmentation mode returns multi-point polygons, which is
the paper's geometry-aware path for photographed, curved or crumpled pages.NaviOCR/).A third Single region mode skips layout and runs the authors' one-block path
(block_parse) over the whole image with the prompt for a chosen block type —
table, formula, code, seal, or a chart / scientific figure, which the model
converts into the table it implies.
Outputs: rendered document, Markdown source, layout overlay, and the raw block list as JSON.
Example pages are the official assets from the
NaviDC-OCR model card
(Apache-2.0). The NaviOCR/ package is a trimmed copy of the authors'
reference implementation (Apache-2.0),
limited to the modules needed for the transformers backend.
10 commits
Demo of StarDoc-AI/NaviDC-OCR, a 1.2B document-parsing vision-language model that unifies digital and camera-captured documents (paper · code).
The app follows the authors' two-stage pipeline:
Detection mode returns axis-aligned boxes (digital
pages, flat scans); Segmentation mode returns multi-point polygons, which is
the paper's geometry-aware path for photographed, curved or crumpled pages.NaviOCR/).A third Single region mode skips layout and runs the authors' one-block path
(block_parse) over the whole image with the prompt for a chosen block type —
table, formula, code, seal, or a chart / scientific figure, which the model
converts into the table it implies.
Outputs: rendered document, Markdown source, layout overlay, and the raw block list as JSON.
Example pages are the official assets from the
NaviDC-OCR model card
(Apache-2.0). The NaviOCR/ package is a trimmed copy of the authors'
reference implementation (Apache-2.0),
limited to the modules needed for the transformers backend.
10 commits