space ocr
GuidesArticlesPricingDocs
verification

Validate OCR output with bounding boxes

Use per-field box and quad coordinates with review.flagged and review reasons to validate OCR output without relying on a fixed confidence threshold.

5 min read· 2026-08-31

Validating OCR usually means re-reading the document yourself — slow, and exactly the work you were trying to avoid. Bounding boxes change the loop: instead of comparing two columns of text, you let your eye jump to the spot on the image where each value was read from. Right or wrong becomes obvious in a glance.

The signals attached to each value

space ocr separates business data from review metadata. Extracted values live in data.values. For a field path, data.cells[path] can contain an axis-aligned box, an oriented quad, a verified verdict, a review object, and supporting evidence.

Do not build the review queue from a fixed match-ratio threshold. Start with data.review.flagged; each item's path points directly to data.cells[path], where the UI can show the location and review reasons. Match ratio may appear under evidence, but it is only one diagnostic signal.

Hover across cells — the source highlight follows live, so spot-checking a batch takes seconds.

Coordinates are evidence, not proof

The source coordinates are produced by matching extracted text against OCR observations on the page rather than asking the language model to invent geometry. That makes box, quad, and evidence.printed_text useful for checking a value at its source. It still does not guarantee correctness: two systems can agree on the same misread, and declared rules can flag a value even when its text matches. See Document OCR with an audit trail.

  1. Read the review queue
    Read data.review.flagged after POST /ocr/fields or the corresponding stored result.
  2. Resolve each path
    Use each flagged item's path to open data.cells[path] and display its review reasons.
  3. Confirm by location
    Draw the cell's box or quad over the frame described by data.image and compare the printed source with data.values.
  4. Correct and validate downstream
    Apply the documented edit workflow where appropriate, and keep business-rule checks for errors that OCR comparison alone cannot detect.
How do coordinates help validate OCR?
A cell's box or quad takes the reviewer directly to the source region. data.review.flagged identifies which paths need attention and cells[path].review explains why.
What match ratio counts as reliable?
There is no public fixed match-ratio gate for human review. Use data.review.flagged and cells[path].review; evidence.match_ratio is supporting diagnostic evidence.
Does a verified value guarantee correctness?
No. Coordinates and cross-checks surface many mismatches but two systems can agree on the same error. Keep format, range, enum, arithmetic, and business-rule validation where applicable.
Related