Fugu OCR: OCR for financial documents

built for financial documents runs on one CPU thread, no GPU needed weights 7.7M main model 31 MB free to self-host inside your company

OCR built for financial documents: statements, annual reports, filings, invoices and receipts.
Small enough to self-host. Every line comes back with the box it was read from.

Fugu OCR turns PDF pages and scans into text in reading order, with a box for every line (and, from the full reader, an estimated box for every character), so a number in your output can be traced to its place on the page. It was built for, and tested mostly on, company reports, financial statements, forms and receipts. It reads printed Latin, Cyrillic, Japanese and Korean. Handwriting is not read.

What it does

A scanned income statement with the lines Fugu OCR found, beside the table and notes it returned

This is the reader's real output on a scan-like copy of an income statement we wrote for this card (assets/sample_doc.html). All 47 figures on the page came out right. The only things lost were three dot separators in the heading and footer.

Try it

The package is on PyPI and fetches these weights on first use (code and docs: github.com/fugu-ai/fugu-ocr). With uv:

uvx fugu-ocr demo                                   # a page in your browser with a sample read; drop your own PDFs on it
uvx fugu-ocr statement.pdf --json out.jsonl         # the small reader on the CPU, no PyTorch
uvx --from 'fugu-ocr[full]' fugu-ocr statement.pdf --layout --json out.jsonl    # the full reader

or pip install fugu-ocr (pip install "fugu-ocr[full]" for the full reader). On Linux without an NVIDIA GPU, add --extra-index-url https://download.pytorch.org/whl/cpu (uv: --index) to get PyTorch's CPU build.

That prints the text of every page and writes one JSON record per page with text and lines (boxes in PDF points, from the top-left corner); the full reader adds chars, and --layout adds blocks, labelled heading, text, table, footer and so on, in reading order. --charts (beta) adds the values of charts drawn in the PDF.

The reader is also in this repository as a single script (read_pdf.py, which declares its own dependencies): download the repository and run uv run read_pdf.py statement.pdf --json out.jsonl.

Two readers: pick by the kind of page

The full reader is the one to use for figures. There is also a small reader that needs no GPU; it is faster on a CPU and clearly less exact on numbers.

Small CPU reader (fugu-ocr quick) Full reader (--reader full, with fugu-ocr[full])
Best for Clean, born-digital pages Scans, faxes, photographs, receipts
Speed Under 1 s a page on one CPU thread on clean report pages About 9 pages a second on an A10G, 11 as a long-running service; slow on a CPU
Clean report pages, words found 98.4% 99.5%
Clean report pages, output words that are right 98.0% 99.1%
Company report pages, numbers returned exactly (sign, brackets, decimal point) 96.6% 98.2%
Report pages rendered to images 98.6% 99.0%
Scanned forms 83.5% 89.5%
Receipt scans 88.3% 94.0%
Public benchmarks (ParseBench-2 / OmniParseBench) 51.2 / 43.4 65.4 / 53.2
Japanese and Korean no yes
# clean PDFs, CPU only
fugu-ocr quick statement.pdf

Which reader a page gets is yours to decide; a PDF with a text layer and no full-page image is almost always clean. The accuracy rows are on our development pages, except the exact-number row (611 pages of company reports not used in development, 2 December 2026); the small reader missed our own bars on clean reports and on forms.

Many documents, or a long-running reader

# a list of PDFs: the models load once, one result file per document
fugu-ocr --file-list pdfs.txt --output-dir results/

# an HTTP service that keeps the models loaded (OpenAPI page at http://127.0.0.1:8000/docs)
fugu-ocr serve

A document that cannot be read is reported and the rest carry on. Pages with several columns are read column by column by default (--no-split-columns turns that off).

In the plain text, a table row's label and its figures are on one line. Columns are not aligned: where a row has an empty cell, nothing stands in for it. --table-columns gives tab-separated columns instead, and can put a figure in the wrong field on tables with empty or merged cells. On charts, the tick labels of an axis may be paired like a row. --no-table-rows gives one cell per line.

For PDFs that carry their own text there is an opt-in shortcut, off by default: --text-layer=fast takes the PDF's text after a spot check and an ink check, and --text-layer checks every amount first. Neither is proof against a PDF built to deceive; REFERENCE.md says what each level checks and what still gets past.

How it compares

We scored the full reader against OCRia-nano-1 and Tesseract on pages none of them had seen, each set scored once. Words found / precision; higher is better.

Pages Fugu OCR OCRia-nano-1 Tesseract
98 clean pages from 15 English reports of 2026 (companies, universities, public bodies) 0.962 / 0.994 0.960 / 0.990 0.954 / 0.983
44 scanned Spanish newspaper pages 0.872 / 0.889 0.845 / 0.918 0.764 / 0.939
80 Japanese and Korean pages 0.970 / 0.946 0.946 / 0.917 0.911 / 0.878
  • On rough scans we find more words but write more wrong extras: precision is about 3 points behind OCRia-nano and 5 behind Tesseract.
  • On Japanese and Korean our precision had help the others did not (the PDF's own layout hints), so only words found is like for like.
  • These rows were measured on 27 November 2026 with the previous default weights (lbm3).

The small reader on a CPU, against RapidOCR (PaddleOCR).

RapidOCR runs PaddleOCR's models on ONNX Runtime, the usual fast choice for OCR on a CPU. We read 611 pages of company reports not used in development (91 documents, 31,986 numbers) with each, giving every reader the same page picture and 4 CPU threads and timing the reading only. Measured on 3 December 2026 with fugu-ocr 0.1.0 and RapidOCR 3.10.0.

Reader Numbers returned exactly Words found Time a page, Apple M1 Pro Time a page, cloud CPU
Fugu OCR, small reader 96.7% 98.8% 0.50 s 0.63 s
PP-OCRv6 small (RapidOCR's default) 96.2% 96.0% 3.02 s 2.95 s
PP-OCRv6 tiny 94.3% 96.0% 0.84 s 1.01 s
PP-OCRv5 mobile 94.1% 95.1% 2.62 s
PP-OCRv5 mobile, English 95.0% 94.9% 2.22 s 2.26 s
PP-OCRv4 mobile, English 93.5% 91.2% 2.70 s
  • As accurate on numbers as PP-OCRv6 small (+0.5 points, within the margin of error) at about a fifth of its time, and ahead of every faster or older setting by 1.7 to 3.2 points (95% intervals over documents exclude zero).
  • A number counts only if its sign, brackets and decimal point are all right. Mac times are from 20 of the pages, cloud times from all 611.
  • These are clean renders of digital PDFs, not scans, and the pages were picked as ones our full reader reads well, which leans slightly our way. RapidOCR ran with its own settings apart from the choice of model.

On public benchmarks (current weights; our figures from one run of the release code on 3 December 2026; the other readers' from 30 November and 1 December; every reader on the same image-only pages), the picture is mixed. We are clearly ahead of OCRia-nano on ParseBench-2 and level with it on OmniParseBench; Tesseract is ahead of us on olmOCR-bench and OmniDocBench. These are the text parts of each benchmark, not their overall scores.

Benchmark Fugu OCR OCRia-nano-1 Tesseract 5.3
ParseBench-2, text score on 466 supported cases (higher is better) 65.4 58.9 44.9
OmniParseBench, text-presence tests passed, 3,398 tests (higher) 53.2 53.2 32.3
olmOCR-bench, multi-column tests passed, 884 tests (higher) 46.7 10.9 53.0
olmOCR-bench, long tiny text tests passed, 442 tests (higher) 52.0 33.0 58.8
OmniDocBench, English text error (lower is better) 0.157 0.471 0.130
OmniDocBench, reading order error (lower) 0.295 0.447 0.256

Our weakest results are on multi-column pages and very small print. OCRia-nano's figures on the first two rows are from its better (markdown) output mode; Tesseract ran with English, plus Russian on the two multilingual benchmarks.

Indra OCR. Its model licence is unclear about benchmarking by other OCR projects, so we publish no measurements of it and cite only what its makers report: 0.114 text edit distance on the English pages of OmniDocBench v1.5, and 78.9 on their own OmniParseBench. On OmniDocBench English text our reader scores 0.157 (lower is better), as a plain-text reader of image-only pages; the two figures come from different set-ups and are not like for like.

What it reads, and what it does not

Reads well Annual reports, financial statements, filings and letters, as clean PDFs or clean scans; receipts; Russian, Ukrainian and Bulgarian; Japanese and Korean
Reads, with care Damaged faxes and rough photographs; tables (use --layout); very small print (pages are enlarged automatically); sideways pages (turned automatically)
Does not read Handwriting; Arabic, Hebrew, Chinese, Indic scripts; Vietnamese and other extended Latin alphabets; maths as formulas (it comes out as plain text)

--layout's table order and the fast line decoder each build a small C++ file the first time they run. Without g++ or clang++ they fall back to the plainer or slower path and say so in one line.

Licence: free to self-host inside your company

You may run Fugu OCR inside your own organisation. You may not offer it to others as a hosted service or redistribute it; hosted demos published by Fugu AI are the exception.

You may run Fugu OCR inside your own organisation, for commercial work, on your own machines or your own cloud account, at no charge, whatever your company's size (PolyForm Internal Use License 1.0.0).

In spirit this is close to the Elastic License: use it freely in-house, do not resell it.

How that compares, as we read each licence on 1 December 2026 (their own texts are what count):

Commercial use inside a company Company size limit Offer it to others as a service Redistribute
Fugu OCR (PolyForm Internal Use) Yes, free None No No
Indra OCR 1.2 weights (modified OpenRAIL-M; code is Apache 2.0) Free only under the limit, and not at all if your company offers anything that competes with theirs $5M revenue in the prior year, or $5M funding raised Under their conditions Under the same licence, with notices
OCRia-nano-1 weights (modified Open RAIL-M) Free only under the limit $2M revenue in the prior year, or $2M funding raised Not as a document-parsing or OCR service that competes with theirs, at any size Under the same licence
Tesseract (Apache 2.0) Yes, free None Yes Yes

Research and personal users can pick the PolyForm Noncommercial License 1.0.0 instead. This is a summary, not legal advice: LICENSE.md is the text that counts.

More

  • REFERENCE.md: every option, every file, how each number here was measured, and known limits.
  • CHANGELOG.md: what changed in each snapshot.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using fugu-ai/fugu-ocr 1