Skip to main content

OCR and document extraction

Combine native extraction and OCR before validating structured records.

OCR and document extraction

Activity responsibilities

ActivityResponsibility
ingest-documentsExecute the ingest documents stage and publish its declared outputs for downstream activities.
ocr-pagesExecute the OCR pages stage and publish its declared outputs for downstream activities.
extract-native-textExecute the extract native text stage and publish its declared outputs for downstream activities.
classify-sectionsExecute the classify sections stage and publish its declared outputs for downstream activities.
extract-fieldsExecute the extract fields stage and publish its declared outputs for downstream activities.
validate-schemaExecute the validate schema stage and publish its declared outputs for downstream activities.
publish-recordsExecute the publish records stage and publish its declared outputs for downstream activities.

Inputs

  • Documents
  • Extraction schema
  • OCR model

Outputs

  • Page text
  • Structured records
  • Validation report

Provenance to preserve

  • Page coordinates
  • Confidence
  • Validation failures

Runnable example

This is the complete checked-in bundle for this pattern. Download the environment, scope, topology, workflow, input, container recipe, runner, and validation contract from this page before executing it.

Verified local execution

These captures and the output manifest were produced by the fixture's local Docker run and validator. They are published with the same bundle as the runnable files.

OCR and document extraction workflow execution evidence
Workflow evidence
OCR and document extraction execution evidence
Execution evidence
OCR and document extraction output evidence
Output evidence
Open verified output manifest ↓

Execution considerations

Route pages according to text-layer quality and retain coordinates linking every field to source evidence.

AkôFlow boundary: the engine schedules, deploys, executes, transfers data, and records evidence. The ML or agent framework remains an implementation choice inside each activity.