Technology capabilities

OCR & Document Vision

Baaz builds document extraction that returns structured, validated data instead of a wall of text. Vision language models read the page as a page, so tables, handwriting, and mixed layouts survive, with a schema, a confidence threshold, and a human review queue around the model.

How extraction runs end to endLive
A scanned invoice goes from image to structured fields with confidence scores, and low-confidence fields land in the review queue.

Our offerings in OCR and document vision

Each of these ships with a schema, a confidence policy, and a review path, because extraction without those is a demo.

Structured Field Extraction

Invoices, purchase orders, delivery notes, forms, and statements read into the exact fields your system expects, validated against a schema so a malformed result is caught before it is written.

Table & Line-Item Parsing

Line items with quantities, rates, and totals pulled out as rows. Tables that span pages, merged cells, and inconsistent column widths are the usual reason naive extraction produces plausible nonsense.

Handwriting Recognition

Filled forms, delivery slips, annotations, and ledgers. Legible handwriting is now well within reach of vision models. Poor handwriting is not, so the review queue is designed around that reality.

Document Classification & Routing

Identify what a document is before extracting from it, so an invoice, a credit note, and a packing list each follow the right path through your workflow.

Identity & Compliance Documents

KYC documents, licences, and certificates with field extraction plus checks on expiry and completeness, built for environments where the images cannot leave your network.

Human-in-the-Loop Review

A queue where low-confidence extractions land with the source image beside the proposed values, so a person corrects instead of retyping, and corrections feed the next evaluation round.

Technology stack & extraction pipeline

The recognition engines, validation layers, and review tooling we use to turn a scan into a record your systems can trust.

  1. Classical OCR

    Fast and predictable on fixed-layout, clean documents.

  2. Vision language models

    Reading the page as a page, for tables, handwriting and mixed layouts.

  3. Document understanding

    Structure before content: what kind of document, and where things sit on it.

  4. Validation

    The layer that stops a malformed extraction reaching your database.

  5. Review tooling

    Where uncertain extractions go, and how corrections come back.

  6. Integration

    Delivering records into the systems that use them.

Which approach fits your documents

Classical OCR is not obsolete and vision models are not a universal upgrade. The document decides.

Varying layouts & handwriting recognitionPipeline Demo
Handling non-standard templates, skewed scans, and handwritten delivery notes with vision models and confidence-score routing.

Fixed-layout, clean scans

If every document has the same template and the scans are clean, classical OCR with zonal rules is faster, cheaper, and more predictable than any model. Do not over-engineer this case.

Mixed layouts and tables

Varying suppliers, multi-column pages, and tables that span pages are where character-level OCR breaks down and reading the page as a whole wins clearly.

Handwriting present

Any handwritten field pushes you to vision models, with the caveat that published accuracy for handwriting varies enormously by document and legibility, so your own sample is the only trustworthy test.

The data lands in a ledger

When extracted values post to finance or compliance records, a confident wrong answer costs more than a flagged uncertain one. That argues for a strict schema, a confidence threshold, and abstention over a guess.

How a document extraction build runs

Human review queue & system integrationArchitecture Demo
Flagged documents route to a keyboard-first review queue with side-by-side source verification before posting to ERP and accounting systems.

Document Census

Step 1 of 7

Document Census

Collect a real sample across every source, including the ugly scans people apologise for. The messy tail decides the architecture, and a clean sample hides it.

Why choose Baaz for document vision?

We build the ERP and finance systems these documents feed, so extraction posts into the system of record with an audit trail behind it.

Schema first, model second

The output contract is defined before any model is chosen, so extraction is validated against a concrete contract.

Abstention over invention

A field the system cannot read comes back empty and flagged. A plausible guess that posts to a ledger is the most expensive failure in document automation.

Tested on your ugly documents

We evaluate on the worst of your real backlog, because published accuracy figures vary wildly by document type and none of them describe your scans.

The review queue is part of the build

Nothing reaches full automation on day one, so the human path is designed as a first-class surface from the start.

Runs inside your boundary

Invoices, KYC files, and medical forms often cannot be sent to a hosted API. Self-hosted models let the documents stay on your infrastructure.

Where document extraction runs

Documents are frequently the most sensitive data a business holds, so deployment follows your compliance boundary. Because the models we use are open weight, extraction can run entirely on your own infrastructure.

  • Your own VPC on AWS, GCP, or Azure

    Documents are processed inside your account and never reach a third-party API.

  • On-premise GPU hardware

    For invoices, KYC files, and medical records that cannot leave your network.

  • Fully air-gapped environments

    Extraction runs with no outbound connectivity, including any model tuning.

  • Managed endpoint operated by Baaz

    We operate and monitor the pipeline under your terms, with an audit trail you own.

  • Batch backlog processing

    Years of scanned history processed in bulk, with the review queue sized to match.

  • Document archive retained under your retention policy

    Originals and extracted records kept exactly as long as your policy says.

OCR & Document Vision - Frequently Asked Questions

Classical OCR recognises characters and returns text, discarding most of the layout. That is why it concatenates adjacent columns on a multi-column page into a single incoherent string. Document vision reads the page as a whole, keeping structure, so tables, forms, and mixed layouts come back as fields and rows your code can consume directly.

Not everywhere. On fixed-layout clean scans, classical OCR with zonal rules is faster, cheaper, and more predictable, and reaching for a model there is over-engineering. Vision models win clearly on varying layouts, tables that span pages, and handwriting. Many production pipelines use both and route by document type.

Legible handwriting is now handled well by vision models, and poor handwriting still is not. Published figures vary enormously, and one study testing several OCR-free models found accuracy ranging from the low forties to the high sixties, while vendor pages quote far higher. Nothing in that range describes your documents, so we test on your own sample and design the review queue around whatever the real rate turns out to be.

Three things working together. The output is validated against a strict schema so malformed results are rejected, the model is trained or prompted to return an explicit empty value for a field it cannot find, and anything below the confidence threshold routes to human review instead of posting. Cross-field checks catch the rest, such as line items that do not sum to the stated total.

On a narrow document type with consistent quality, a high automation rate is realistic. Across a messy real-world mix it is not, and teams that target it tend to get there by raising thresholds until wrong values post silently. We aim instead for a high automation rate on the documents the system handles confidently, with a review queue that stays small and a measured automation rate you can watch.

Yes. Because we work with open-weight models, both extraction and any fine-tuning can run inside your own cloud account or on your hardware, including fully air-gapped. For invoices, KYC files, and medical records that is often the deciding requirement, and it rules out hosted document APIs entirely.

Ready to scope this stack? Brief the Baaz squad or browse more services.