Skip to main content

Why scanned documents need OCR

Status: Ready

Article ID: 028

Truth label: Current

Audience: Knowledge operator

Reader outcome: Recognize an image-only PDF or fixed-layout ebook, prepare it with an approved OCR process, and verify the resulting text before ingestion.

Related articles: 027, 072, 074

Target week: 11

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Distinguish an image from text​

A page can look readable in a PDF viewer while containing only pixels. The current PDF loader asks the file for extractable text. It does not perform optical character recognition. If every page yields no usable text, Brain rejects the source and explains that a scanned document may require OCR.

A fixed-layout or image-only EPUB can fail for the same reason. The archive may be valid while its reading content has no extractable chapter text.

When a source is imported through Sources in Cortex, its extraction quality report lists missing PDF pages, skipped EPUB spine entries, and empty segments, so a partly scanned book is caught before it is published rather than after a search comes back empty.

Test before ingesting​

Try selecting a sentence in the source viewer and copying it into a private plain-text buffer. Search for a known phrase. Check several pages, including a table or heading. If selection returns nothing, returns garbled symbols, or follows the wrong reading order, treat the source as an OCR candidate.

Do not infer success from file extension or visual quality. A PDF is a container, not proof of a text layer.

Choose an approved OCR boundary​

OCR may run locally or through an external service. For confidential or licensed material, decide where the images may be processed before choosing a tool. A cloud OCR service is another external data processor and may have its own retention, training, and regional terms.

Preserve the original as read-only evidence. Create a separate OCR output so reviewers can compare extracted text with the source. Do not overwrite the only copy.

Review the OCR result​

Sample pages from the beginning, middle, and end. Check:

  • headings and paragraph order
  • names, numbers, dates, and negations
  • columns, tables, captions, and footnotes
  • hyphenation across line breaks
  • headers or page numbers repeated into the body
  • missing pages and rotated text

OCR errors can produce plausible but false sentences. Correct important errors before ingestion and keep page identity stable enough to trace a chunk back to the image.

Ingest and verify retrieval​

Once the approved OCR output contains a usable text layer, ingest that derived file through the normal PDF or text path. Search for known phrases and inspect page provenance. Ask a factual question whose answer can be checked directly against the original scan.

Record that the searchable source is OCR-derived. Provenance should name both the original artifact and the reviewed derivative, along with the OCR date and reviewer.

Current limits​

AGENTASIAN does not perform OCR in the ingestion route. OCR quality varies by language, typography, page condition, diagrams, formulas, and layout. Human sampling reduces error but does not prove complete transcription. Rights, privacy, and provider-egress rules apply to both the scan and its text output.

Next lesson​

Continue with Give useful feedback to Brain.

Derivative map​

  • Weekly package: WEEK-11
  • Long video: VIDEO-W11-LONG
  • Shorts: SHORT-W11-PROBLEM, SHORT-W11-MECHANISM, SHORT-W11-WARNING
  • Email: EMAIL-W11
  • LinkedIn: LI-W11-A, LI-W11-B
  • X: X-W11-A, X-W11-B
  • Visual: VISUAL-W11

Review record​

  • No-text failure behavior and EPUB image-only boundary checked against current loader and tests.
  • OCR provider, rights, privacy, provenance, and accuracy limits reviewed.
  • Review procedure preserves the original and uses no private document sample.
  • Internal links and repository voice reviewed.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13