Read barcode from image Version 5 (Python)

Action group: Vision


Description

The action finds and reads barcodes (linear and two-dimensional - QR) from images

Action icon

Parameters

Input parameters 

Image - the path to the image for recognition. 

Output parameters 

Result - string variable containing information from the barcode. 


Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ImageThe path to the image for recognition. Valid extensions: «.jpeg», «.jpg», «.bmp», «.png», «.tif», «.tiff» If the algorithm did not find the file extension or the file type is not applicable, a warning will be displayed.Robin.ImageC:\doc\img.pngYes
Results
ResultString variable containing information from the barcode.Robin.String

Special conditions of use 

If there are multiple barcodes in an image, the first barcode will be processed based on its position in relation to the upper left corner of the image.

Only encrypted information is retrieved. There is no linkage to the database to obtain complete information about the object by numeric codes.

The limit on the size of the image used is 2 GB, otherwise an action will cause an error.

Example of use 

Task

There is an image with a barcode, read the data by barcode and write the result to a variable of the string type. 

Solution

Use the "Read barcode from image" action. 

Implementation

  1. Move the "Read barcode from image" action to the workspace. 


  2. Set the "Read barcode from image" action parameters. 


  3. Click "start" in the top panel. 

Result

The program robot completed successfully. The data from the barcode was written in the text variable. 

  • Нет меток