Barcode Reader

This function block is designed to read and decode barcode and QR codes from an image. It allows for quick extraction of data encoded in these formats.

πŸ“₯ Inputs

Barcode Image The image that contains the barcode or QR code you want to read.

πŸ“€ Outputs

Barcode Image The output is the original image with any detected barcode or QR code highlighted.

Barcode Type This output returns the type of barcode detected.

Barcode Data This output contains the actual data extracted from the barcode.

πŸ•ΉοΈ Controls

This function block does not have explicit user controls, as it automatically processes the input image when executed.

🎨 Features

Automatic Barcode Detection The block automatically detects and decodes barcodes and QR codes present in the input image.

Visual Feedback The original barcode image is returned with visual markings to highlight the detected barcodes.

πŸ“ Usage Instructions

  1. Input Image: Connect an image containing a barcode or QR code to the Barcode Image input.

  2. Process the Image: Run the function block to automatically detect, decode, and highlight any barcodes present in the image.

  3. Retrieve Output: Check the outputs for the modified image, type of barcode detected, and the encoded data extracted.

πŸ“Š Evaluation

When executed, this function block processes the input image for barcodes and returns the results, including the original image with barcodes highlighted, their types, and extracted data.

πŸ’‘ Tips and Tricks

Ensuring Clear Images

For best results, make sure the barcode image is clear and well-lit to avoid reading errors. Low-quality images may lead to failures in detection.

Multiple Barcodes

If your image may contain multiple barcodes, ensure that the input image is capable of displaying all codes clearly without overlapping.

Image Preprocessing

Consider using Image Threshold or Denoising function blocks to preprocess the image before feeding it into the barcode reader to enhance detection accuracy.

πŸ› οΈ Troubleshooting

No Barcodes Detected

If no barcodes are detected, verify that the input image is clear and properly focused. Adjust the lighting and ensure that the barcode is not too small.

Invalid Image Data

If you receive an error saying "No image data available," confirm that you have correctly connected an image to the input socket.

Last updated