hn.today

Show HN: OCRia-nano-1, OCR at 8.1M parameters

huggingface.co9 points3 comments
Screenshot of Show HN: OCRia-nano-1, OCR at 8.1M parameters

OCRia-nano-1 is an 8.1-million-parameter document-parsing pipeline designed to run on CPUs, distilled from LlamaIndex’s 4-billion-parameter OCRia-1 vision-language model. It combines text-line detection, a script router, four recognizers for Latin, CJK, right-to-left and roughly 17 other scripts, plus LayoutNet for tables and page structure. Rather than operating as a standalone model, its ONNX files run through LiteParse, which renders documents, combines recognized text with any existing PDF text layer, and produces Markdown or JSON with bounding boxes. It supports PDFs, images and Office documents, and runs through command-line, Python, Node.js and WebAssembly interfaces.

Benchmarks report a ParseBench-2 score of 59.2, above Indra at 55.1, Marker at 52.5 and LiteParse with Tesseract at 48.7. It scores particularly well on tables and layout, though chart performance remains low, and its 27.8 pages per second across 16 CPU cores is competitive with other local parsers. OCR alone reaches 37.2 pages per second; adding LayoutNet improves structural parsing at some speed cost. The model is offered under a restricted license: research and qualifying personal or commercial use are allowed, but larger organizations and competing document-parsing services need a commercial license. LiteParse itself is Apache-licensed.

Read on huggingface.co3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.