Skip to content

Barcode Reader

Overview

Scans an input image for barcodes and decodes their content. This node is typically placed after an Image input or processing step to identify products in a production line.

Use Barcode Reader when:

  • Identifying parts based on a physical barcode label.
  • Linking physical products to their digital records during inspection.

Inputs

NameTypeDescription
imageimageThe input image used to detect and decode a barcode.

Outputs

NameTypeDescription
valuestring or numberThe code value of the barcode. Can be output either as a string or as a number type based on node configuration.
polygonlist[polygon]Outputs a polygon of the outline of the barcode.
qualitynumberA metric representing the quality of the barcode detection.
orientationstringOrientation of the code relative to the camera (Up, Down, Left, Right).

⚠️ Warning

When multiple barcodes are present in the image, the node only detects the best readable one. All other barcodes are dismissed.

Parameters

ParameterDefaultValid valuesTunable
Code typeANYANY, CODE39, CODE128, EAN13, QRCODE, etc.
Number outputfalsetrue, false

Code type

Specifies the type of barcode the node should look for. Setting this to a specific type can improve detection speed and accuracy.

numberNumber output_output

If true, the value output is parsed and emitted as a number. If false, it is emitted as a string.

Example

Product identification

The system scans an EAN-13 barcode on a package and passes the ID for next processing.

Configuration:

  • Code type: EAN13
  • Number output: true

Result: The barcode's numerical value is sent to the next node for processing.

Reference:

  • Image Stream — stream from a camera or file source
  • Text (output)— exit point for text (string) data from the flow
  • Number (output) — exit point for numerical data from the flow