From Scanned Forms to Spreadsheet Rows: What MiniCPM-OCR Can Actually Do
If your job is turning a stack of scanned forms into a spreadsheet — one row per form, with a name, a date, and an amount in their own columns — the part that actually matters isn't reading the page. It's picking out the right handful of values and keeping them trustworthy enough to use. We built MiniCPM-OCR for exactly this kind of document work, and it runs on machines you control, without sending documents to a cloud OCR service.
This is a different task from pulling repeating line items off an invoice, where the challenge is recognizing table rows that repeat down a page. Here, each form gives you a handful of one-time fields — a name, a date, an amount — and the job is to get those specific values out cleanly, not to transcribe everything on the page.
Why pulling fields isn't the same as transcribing the page
A document model that reads a form well can still hand you the wrong thing for a spreadsheet. Full-page reading gives you everything on the form in reading order — headers, labels, boxes, signatures, the works. What you actually want is three or four specific values, correctly separated from their labels and from each other.
Those are related but different jobs, and treating them as the same one is where spreadsheet imports go wrong: a name field that includes the label "Full Name:", a date that's been silently reformatted, or an amount that's merged with a currency symbol in a way your spreadsheet can't parse as a number.
Dimension
Full-page transcription
Key information extraction (KIE)
Output
Everything on the page, in reading order
Only the named fields you asked for
Good for
Archiving, reading the whole document
Writing clean rows into a spreadsheet
Main risk
Labels and values run together
Still needs mapping and spot-checking per field
Two models, two jobs
Official published panel of English document examples — handwritten notes, a historical document, a scanned document, a newspaper, a financial statement, and key information extraction — from the MiniCPM-OCR document AI inspector blog post.
MiniCPM-OCR ships two models built for different parts of this workflow. MiniCPM-OCR 1.0 is the document model: it reads text-heavy documents — forms, scans, photographs of paperwork — and, importantly for this task, it supports key information extraction (KIE), which means it can return specific named fields rather than only a full transcription of the page. That's the capability you point at a form when you want a name, a date, and an amount back instead of the whole document as one block of text.
MiniCPM-OCR Jev is a second model with a narrower job: given an original region from a document, a candidate OCR result for it, and a rendered image of that candidate text (rendering can happen automatically inside the service), it checks how closely the candidate matches what's actually on the page, returning a consistency score that flags regions worth a second look.
Official MiniCPM-OCR Jev comparison panel from the MiniCPM-OCR document AI inspector blog post, showing text, formula, and table examples.
In the bottom table example, candidate 1 scores 0.0122 and candidate 2 scores 0.9883, with red highlighting the figures in candidate 1 that don't match the original table and green highlighting the figures in candidate 2 that do. Jev measures how closely a candidate's text matches the original image, and reading the score alongside these highlights is how a reviewer compares each candidate against the original and decides which one to prioritize checking first — your own review rules determine what's accepted.
It doesn't extract anything itself, and scoring a region isn't the same as validating a KIE field, a normalized date or amount, or the arithmetic in a finished row — those depend on your own field mapping and business checks. What it scores is narrower: given an original region crop, a candidate OCR result, and a rendered image of that candidate, it returns how closely the candidate matches that region. Using it is optional. If you want that score to help triage a batch of forms, validate the threshold first on a representative sample of your own forms — including a look at the high-scoring cases — and keep your field- and row-level business checks separate from it.
Both models are released under an open license, so you're free to run them as part of your own pipeline rather than through a subscription service.
From document output to spreadsheet columns
A synthetic input example created for this article, used to illustrate the key information extraction prompt and output below.
To pull out just those three fields, you'd send the image above to the recognition service with a prompt naming them:
Extract the "name", "date", "amount". Format the output as a JSON object with keys: "name", "date", "amount". If an item is not in the image, use "###".
Illustrative output (raw strings) for this synthetic form, with each value copied as it appears on the form, before any normalization:
{
"name": "Jordan A. Taylor",
"date": "05 Mar 2026",
"amount": "$1,250.00 USD"
}
Those raw strings aren't yet ready for a spreadsheet column: the date still needs a consistent format, and the amount still needs its currency and separators interpreted. The row below keeps both the raw strings and the values after your own application performs that normalization step, together with an illustrative source file and page for this synthetic example:
Name
Date (raw)
Date (normalized)
Amount (raw)
Amount (normalized)
Source file
Page
Jordan A. Taylor
05 Mar 2026
2026-03-05
$1,250.00 USD
1250.00 USD
sample-intake-form-003.pdf
1
Asking MiniCPM-OCR to read a form with a full-page parsing request gives you back the document's content and structure — not, by itself, a flat row of name, date, amount ready to write to a CSV. Key information extraction is a separate, more direct route to the fields you want: you send the form image straight to the recognition service with a prompt naming the fields you need, and it returns a JSON object keyed by those field names, with no need to generate full-page Markdown or run layout detection first. That response is still model-generated text, so the practical step is parsing the JSON and checking its fields and values before you treat them as final. The alternative is applying your own field-mapping step on top of a full-page parse you've already run for other purposes.
Either way, the practical pattern is the same: read the form, pull out the candidate name, date, and amount, then write each one into a spreadsheet row alongside which source document and page it came from. That provenance — document and page per row — is what lets you trace any value back to the original form later, which matters the moment someone asks "where did this number come from?"
Jev fits into this step one level down, not at the level of the finished row: it scores how closely an OCR candidate matches an original region, which is a different question from whether a KIE field was assigned correctly or a row's values are right — those still need your own field-level and business checks on top.
Why missing values, dates, and amounts need special handling
Three kinds of fields cause most of the real trouble in form-to-spreadsheet work, and each needs a slightly different habit:
Missing values. Not every form has every field filled in. Knowing how an absent field is represented in the output — rather than assuming it's simply blank — is what lets you tell "this value wasn't found" apart from "this value is actually empty," which matters if your spreadsheet treats the two differently.
Dates. A date on a form is written in whatever convention that form's author used. Reformatting it into a single consistent format (so a spreadsheet can sort or filter by date) is a separate, deliberate step that should happen after extraction, with the original text retained — not something to assume the model has already normalized for you.
Amounts. Currency symbols, decimal versus thousands separators, and parentheses for negative numbers all vary by form and by country. Before you compare or sum amounts across rows, you need to interpret that formatting correctly and keep a single consistent currency per column — merging different formats or currencies into one numeric column is how totals quietly go wrong.
None of this means the extraction step failed. It means field-by-field handling — not whole-document accuracy — is the right way to judge whether a value is ready to use. Deciding whether a date is formatted right or an amount's currency was read correctly is a business check on that field, separate from a tool like Jev, which scores how closely an underlying OCR candidate matches its original region rather than judging a normalized field or a finished row.
Which forms and setups this fits
This approach suits forms where the fields you need are fixed and well-defined per document — intake forms, applications, receipts, claim forms — rather than free-form documents where you don't know in advance what you're looking for. It also fits teams that want this running entirely on their own infrastructure: once the software dependencies are installed and the models and supporting assets it needs — the recognition model itself and, for full-document parsing through the SDK, the layout-detection model — are downloaded, everything from reading the document to extracting fields runs locally, with no requirement to upload scans to an outside service.
Both models run on standard GPU-backed setups, with the document model also available as a fully on-device demo for document recognition on iOS — a separate, lighter integration from the full extraction-to-spreadsheet pipeline described here, useful for quick on-the-go reading rather than batch processing a stack of forms. For regular volume — a backlog of scanned forms you want turned into rows over time — the GPU-backed local pipeline, with Jev scoring applied to the underlying OCR candidates to flag regions worth a closer look, is the setup this article is describing.
Put together, the practical takeaway is this: treat form extraction as two connected but distinct jobs — getting the document model to read the page accurately, and then deliberately mapping the fields you care about into a spreadsheet row with their source attached. Add a quality check on top to decide what gets a human's attention, and a stack of scanned forms turns into a spreadsheet you can actually trust row by row, without it ever leaving your own machines.