A barcode is a machine-readable optical representation of data that encodes information in the widths and spacings of parallel lines (one-dimensional) or in patterns of dots, squares and other geometric shapes (two-dimensional). Barcodes are scanned by optical readers or cameras to retrieve an identifier that links a physical item to a record in an information system. They underpin automatic identification and data capture in retail, logistics and inventory control.

Overview

  • The barcode originated as a linear (1D) symbology in which numeric or alphanumeric data is encoded in the relative widths of dark bars and light spaces. Common 1D symbologies include UPC, EAN, Code 128 and Code 39.
  • Two-dimensional (2D) symbologies such as QR Code and Data Matrix encode data in a grid, dramatically increasing information density and allowing capture by ordinary camera sensors.
  • A scanner illuminates the symbol, measures the reflected light, decodes the pattern into a string and passes that identifier to an application, which resolves it against a database to retrieve item attributes.
  • Barcodes are cheap to print and require no power at the tag, distinguishing them from active and passive radio technologies.

Key aspects

  • Symbology: the rule set that defines how data is encoded into the visual pattern and how check digits guard against misreads.
  • Resolution and quiet zones: minimum bar widths and surrounding blank margins required for reliable optical decoding.
  • Error detection: check digits and, in 2D codes, Reed-Solomon error correction that tolerates partial damage.
  • Global identifiers: codes typically carry a GS1 Global Trade Item Number (GTIN) or similar registered key.
  • Capture hardware: laser scanners, CCD imagers and smartphone cameras with software decoders.

Applications

  • Retail point-of-sale pricing and checkout.
  • Warehouse and inventory management with item-level tracking.
  • Healthcare for medication and specimen identification.
  • Logistics and parcel routing using carrier-specific symbologies.
  • Document workflows and ticketing via QR codes.

Provenance