Data Matrix Reader2
This function block decodes Data Matrix codes from an image and returns the decoded text values. It is suitable for reading one or multiple Data Matrix symbols present in a frame.
π₯ Inputs
Data Matrix Image Provide an image (grayscale or color) that contains Data Matrix symbols to be decoded.
π€ Outputs
Data This output returns a list of decoded text strings found in the input image.
πΉοΈ Controls
Timeout Time limit in milliseconds to wait for decoding. Increasing this gives the block more time to detect faint or difficult symbols.
βοΈ Running mechanism
When the block is evaluated it examines the provided image for Data Matrix symbols and attempts to decode each one within the configured Timeout. If symbols are found, their decoded text values are returned as a list via the Data output. If none are found, an empty list is returned.
π― Features
Detects and decodes multiple Data Matrix symbols from a single image.
Returns decoded values as plain text strings for easy downstream use.
Simple timeout control to balance speed and detection robustness.
π Usage instructions
Provide an image source to
Data Matrix Imageβ for example from a camera block or a loaded image.Optionally adjust
Timeoutto allow more time for difficult reads.Use the
Dataoutput to access decoded values for logging, display, or further processing.
π‘ Tips and Tricks
If the target symbol is in a small area, crop first using
Image ROI Selectso the block only processes the relevant region.Improve read reliability by resizing the input with
Image Resizeto increase symbol pixels.Clean up noisy images with
Blur,DenoisingorImage Adaptive Thresholdbefore feeding into this block.Use
Show Imageto preview the exact frame being analyzed while you tune preprocessing.Save example frames with
Image LoggerorImage Writefor offline analysis and tuning.If you expect other code types (QR, linear barcodes) try
Barcode Readeras an alternative for those formats.If symbols may be rotated, try
Image AutoRotatoror crop different orientations via ROI tools.
π οΈ Troubleshooting
No decoded values: check lighting and contrast, crop to the symbol with
Image ROI Select, increaseTimeout, or enlarge the image withImage Resize.Partial or garbled text: ensure the symbol is not blurred β try
Blurremoval or a higher-resolution input.False negatives on noisy backgrounds: apply
Image Adaptive Thresholdor other filters to improve foreground/background separation.Many symbols but only some decoded: process each ROI separately or increase the
Timeoutand improve image quality for the missing symbols.
Last updated
Was this helpful?