Appearance
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
| Name | Type | Description |
|---|---|---|
| image | image | The input image used to detect and decode a barcode. |
Outputs
| Name | Type | Description |
|---|---|---|
| value | string or number | The code value of the barcode. Can be output either as a string or as a number type based on node configuration. |
| polygon | list[polygon] | Outputs a polygon of the outline of the barcode. |
| quality | number | A metric representing the quality of the barcode detection. |
| orientation | string | Orientation 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
| Parameter | Default | Valid values | Tunable |
|---|---|---|---|
| Code type | ANY | ANY, CODE39, CODE128, EAN13, QRCODE, etc. | ❌ |
| Number output | false | true, 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.
Related links
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