Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Parameters

Input parameters

File Path - The path to the file where you want to find barcodes and extract data from them. Supported formats: jpg, jpeg, bmp, png, pdf.

Page number - The page number of the file on which to search for barcodes. If this field is not filled in, the barcode search will you want to search for barcodes on all pages.

Barcode type - The type of barcode the action should find. If "Detect automatically" is selected, any barcodes barcode in the file will be found.

Popup list:

    • Detect automatically
    • EAN13

    • UPC-A

    • UPC-E

    • CODE 128

    • QR code

    • DATAMATRIX

    • DATAMATRIX (GS1)

Order - The order sequence number of the found barcode from which the action should return data. If this field is not filled in, the action will return the data from of all barcodes found. The numbering starts from 1.

Output parameters

Result - A collection containing data that has been extracted from barcodes. One element of the collection is the value of one barcode.

...

  1. If there is a barcode in the file that is not specified in the action's algorithm, the action will ignore it. An unknown barcode will not be recognized, the action will return an empty collection. 
  2. If the barcodes are rotated at any angle, they will be recognized.
  3. The robot will return an empty collection if no barcodes are found .

The robot will return an error if:

  • an invalid input file format is entered in the "File path" field
  • the page number is incorrect (outside the range of the number of pages in the document)
  • the sequence number is out of the range of the number of codes found

The robot will not return an error if:

...

  1. or an unknown barcode is in file.
  2. The barcode will not be recognized. The image has text, unnecessary information.Image Added
  3. The barcode will be recognized.Image Added
  4. Both barcodes will be recognized.Image Added

Example of use 

Task

There is an image with a barcode, you need to read the barcode data. 

...

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


  2. Customize the parameters of the "Read barcode from PDF" action. Remember that the barcode will be read only if it belongs to the above barcode types from the dropdown list. In this case, it is type EAN13.


  3. Click on the "Start" button in the top panel. 

...

The program robot completed successfully. The barcode data has been recognized. 

The result can be loaded into a collection by specifying a collection variable, or the result of this action can be input to another action that accepts the collection.

Thus, to display a result, you must either add an action that takes a collection as input, or specify a variable of type collection to be specified as a result of this action.