1D/2D Barcode Recognition

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Function

This Step is used to 1D and 2D barcodes within the specified image region, and output the code contents and their positions in the image.

This Step supports the following code types: UPC-A, UPC-E, EAN-8, EAN-13, Code 93, Code 39, Code 128, ITF, RSS-14, RSS Expanded, Codabar, QR Code, Data Matrix, Aztec Code, PDF417, and MaxiCode.

Usage Scenario

This Step is a general image processing Step. No fixed usage scenarios.

Input Description

Input item Description

Image

Image containing 1D or 2D barcodes.

Alignment Parameter Group

Optional input. Used to adjust the ROI’s pose in sync with the target object’s pose changes.

Parameter Description

Parameter Description

Decoding Strategy

Parameter description: Select the decoding strategy for 1D and 2D barcodes. Different strategies vary in recognition speed and robustness in complex scenarios.

Value list:

  • Standard: Suitable for common 1D barcodes and some 2D barcodes. It provides fast recognition and performs better on clear, high-contrast codes.

  • Robust: Supports more types of 1D and 2D barcodes. It provides better reading performance for codes that are blurred, skewed, or in complex backgrounds.

ROI Settings

Parameter description: This parameter is used to limit the image processing region. If no ROI is set, the Step will process the entire image.
Tuning instructions: Click the icon, then hold the left mouse button and drag in the data visualization area to draw an ROI of the corresponding shape.

Result Verification

Parameter description: When checked, the decoded 1D and 2D barcode results will be verified to prevent misreads and ensure the code content meets expectations.
Tuning instructions: After checking this parameter, you need to set Verification Mode, Verification Value or Global Variable.

Verification Mode

Parameter description: Select the method used to verify the code content.

Value list:

  • Custom: Uses a custom code value for verification. Suitable for scenarios where the expected content remains constant.

  • Global Variable: Uses a value from a Global Variable for verification. Suitable for scenarios where the expected code content varies.

Validation value

Parameter description: The target code content used for verification.
Tuning instructions: This parameter needs to be set when Verification Mode is set to Custom.

Global Variable

Parameter description: Select the global variable that contains the target code content.
Tuning instructions: This parameter needs to be set when Verification Mode is set to Global Variable.

Output Description

Output item Description

1D/2D Barcode Content

The content of each recognized 1D or 2D barcode.

1D/2D Barcode Location

The position of each recognized 1D or 2D barcode in the image.

1D/2D Barcode Verification Result

Indicates whether each 1D or 2D barcode passes verification. It outputs true if verification passes, and false otherwise.

This output port is displayed only after the Result Verification parameter is checked.

Troubleshooting

For common errors, see Error Code List.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.