An OCR fallback is a second route for documents that the first recognition pass cannot read reliably: stronger image filters, another engine, another extraction method, or a barcode read when the document carries one. A confidence score below a set threshold triggers it. Without a fallback, uncertain reads flow into whatever consumes the output.
Every OCR engine fails on some real input, because paper that has been faxed, rescanned and photocopied degrades in ways no engine fully handles. What happens after the failure is the engineering question. In the clinical pipelines we run, the deciding factor in whether staff trust a pipeline has been how it routes failures. The engine brand has never decided it.
Why a fallback path exists
Picture the pipeline without one. A degraded fax comes in, the engine produces a poor read, and the read moves on because nothing stops it. The error appears weeks later in downstream data, where tracing it costs far more than catching it at extraction would have. In clinical settings this is how OCR noise ends up in the record; our scan and fax clean-up case began with that history and with clinicians who no longer trusted the pipeline.
A fallback turns a silent failure into a routed one. The document gets another attempt, and if every attempt fails, a person sees it. The price is a queue and some routing logic, and in return the error rate of the pipeline becomes a number you measure.
Confidence scoring and routing
Each read carries a score, and the score picks the route. Confident reads continue downstream. Uncertain reads go back for stronger clean-up, a second recognition pass or another extraction method. Documents that keep failing go to human review. In the classification and OCR pipeline we built, the fallback path starts automatically on low-confidence classifier output, with no operator involved in routine cases.
Set the threshold from measurement. Build a labeled sample of your real document mix, including the worst inputs, sweep the threshold and track two numbers: false accepts (bad reads that pass) and the fallback rate (volume sent down the slow path). A threshold tuned on clean test scans will pass production documents that a clinical reviewer would reject.
Two habits keep the threshold valid. Measure again whenever something upstream changes, such as a new scanner fleet, fax provider or document source, since the threshold depends on the input mix. And log the score of every read, accepted reads included: a falling average confidence among accepted reads is the earliest sign that input quality is slipping.

Where barcodes beat OCR
The strongest fallback reads no text. Wherever you generate the document yourself (cover sheets, requisitions, labels, routing slips), a barcode carries identity and routing data and decodes almost every time, even on faxes that turn typed digits into smudges. Barcode symbologies were designed for that kind of damage.
That suggests a split: encode what you generate, and recognize only what you receive. Document identity, the link to the patient and routing go into the barcode; OCR handles the clinical content of the page. The highest-stakes field, which record a page belongs to, then no longer depends on recognition at all. Few pipelines use barcodes this way, although they remove the riskiest reads before OCR runs.
Barcodes also work at capture. An agent that detects a document at its source, like our clinical document watcher agents, can decode the barcode immediately and attach identity to the file from the start, so a document that later defeats every OCR pass still belongs to a known record.
The escalation queue
A document that fails clean-up, the first OCR pass and the fallback, and carries no barcode, lands in the escalation queue for human review together with its full history: what was tried, the scores each attempt produced and the image at each stage. A reviewer who can see that three passes gave three different uncertain readings works faster than one who gets a bare image.
The queue limits the risk of automation, since the pipeline always has a third option besides guessing and stalling. Its volume also shows the health of everything upstream: it shrinks when clean-up improves and grows within a day when a degraded source appears. An empty queue usually means the pipeline is accepting reads it should reject.
The full pipeline around these routes, from capture to the clinical record, is laid out in our medical document OCR pipeline article.
Common questions
What is an OCR fallback?
A second route for documents the first recognition pass cannot read reliably: stronger image filters, another engine or another extraction method. A confidence score below the threshold triggers it.
When are barcodes better than OCR?
Whenever you generate the document. A barcode on a cover sheet, requisition or label decodes reliably on faxed and rescanned copies that defeat text recognition, so OCR only has to handle the content you could not encode.
What confidence threshold should trigger a fallback?
Measure it. Use a labeled sample of your real document mix, sweep the threshold and watch the false-accept rate. A threshold tuned on clean test scans passes production pages that a clinical reviewer would reject.
What happens to documents that fail every pass?
They go to a human review queue with their processing history attached. The queue limits automation risk, and its size shows how well the rest of the pipeline performs.