New Tool Radar

AI PDF

How to Check Units of Measurement in OCR Output from a Scanned Document

Check the units OCR reads with measurements in a scanned document before you quote them.

Schematic illustration of a units check: run OCR, read each measurement with its unit, and compare each unit with the printed sheet.

A measurement without its unit is a bare number, and OCR can drop the unit or swap it: kg becomes kg is fine, but mg read as mg is a thousand times wrong when it was really g. The check is to read every measurement with its unit. This guide checks five measurements on one specification sheet.

Prerequisites

A scanned specification sheet and an OCR tool. Note the expected units for the document before starting.

Steps

1. Run OCR on the specification sheet

Run OCR on the sheet and save the text. Expected result: the five measurements become selectable text.

2. Read each measurement with its unit

Read each number with its unit from the OCR text. Expected result: five measurements, each with a unit attached.

3. Compare each unit with the printed sheet

Compare each OCR measurement with the printed sheet. Expected result: all five units match the printed sheet.

4. Record any measurement whose unit OCR dropped

Record every measurement where OCR lost or changed the unit. Expected result: a note that lists the errors or confirms all five matched.

Practice check: fictional specification sheet for a storage box

The table below is fictional practice material. It lists the five measurements and their units.

Measurement Value
Length 420 mm
Width 300 mm
Height 180 mm
Weight 2.40 kg
Capacity 18 L

Expected result. all five OCR measurements match the printed sheet with the right units: 420 mm by 300 mm by 180 mm, 2.40 kg and 18 L.

Limits

  • OCR reads the unit as printed, not the unit that should be there; a document error in the unit survives OCR unchanged, so check the units against the specification too.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

See all