Research Careers Contact

GlossaryOptical character recognition

Optical character recognition

Optical character recognition, or OCR, is the conversion of text in images, such as scanned documents, photos and screenshots, into machine-readable text. It is the first step in reading paper records, scanned drawings and markings on physical parts.

How it works

Classic OCR pipelines run in stages: clean and straighten the image, find text regions and lines, split lines into characters, recognize each character and assemble words with a dictionary. OCR systems use neural networks for detection and recognition. Detection models find text regions of any shape. Recognition models read each region as a sequence. Transformer-based OCR reads a text image with a vision encoder and writes the text with a language decoder, which handles printed and handwritten text with high accuracy.

OCR output is plain text with positions. Document understanding builds on it, using layout to identify fields, tables and their relationships. Multimodal models read text in images directly, combining recognition and understanding in one step.

Image quality sets the ceiling. Resolution, focus, contrast, lighting and glare decide how much a recognizer can read. Standards for characterizing image sensors and cameras give a common way to specify the imaging side of an OCR system.

OCR vs document AI

OCR turns image pixels into text. Document AI goes further, understanding the document's structure and meaning: which text is a part number, which table holds the bill of materials, which value belongs to which field. OCR is usually one component inside a document AI system.

Why it matters

Much engineering and production information exists only as images: scanned certificates, legacy drawings, supplier documents and the markings printed on parts. OCR makes it searchable and usable. Its errors are subtle: a 0 read as an O or a 5 read as an S in a part number creates a wrong record that looks right.

How to get it right

  • Capture images at sufficient resolution, with even lighting and no glare.
  • Check recognized identifiers against formats and master data.
  • Keep the source image linked to the extracted text.
  • Use layout-aware models for tables and forms.
  • Test on the real documents and markings, including worn and low-contrast ones.
  • Send low-confidence results to review.

OCR in robotics and drone hardware

On a production line, OCR reads part markings, lot codes and labels on reels and boards, feeding traceability and catching wrong parts. Machine vision systems that inspect boards read component markings as part of inspection. Robots in warehouses and factories read labels and signs to find and handle the right items.

Learn more