Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 4 Следующий »

Read barcode from PDF Version 8 (Python)

Action group: Vision


Description

The action looks for barcodes in the file and reads data from them.

Icon


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 search for barcodes on all pages.

Barcode type - The type of barcode the action should find. If "Detect automatically" is selected, any barcodes 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 number of the found barcode from which the action should return data. If this field is not filled in, the action will return data from 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.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
File PathThe path to the file where you need to find barcodes and extract data from them. Supported formats: jpg, jpeg, bmp, png, pdf.Robin.FilePath
Yes
Page numberThe number of the file page on which to search for barcodes. If the field is not filled in, the barcode search will be performed on all pages.Robin.Numeric
No
Barcode typeThe type of barcode that the action should find. If «Detect automatically» is selected, any barcodes in the file will be found. 

Popup list:

    • Detect automatically
    • EAN13

    • UPC-A

    • UPC-E

    • CODE 128

    • QR code

    • DATAMATRIX

    • DATAMATRIX (GS1)

Robin.String
Yes
OrderThe sequence number of the barcode found, from which the action should return data. If the field is not filled in, the action will return the data of all found barcodes. The numbering starts from 1.Robin.Numeric
No
Results
ResultA collection containing data that has been extracted from barcodes. One element of the collection is the value of one barcode.Robin.Collection

Special conditions of use

  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:

  • unknown barcode in the file = no barcode in the file. An empty collection will be returned.

Example of use 

Task

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


Solution 

Use the "Read barcode from PDF" action. 

Implementation

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


  2. Customize the parameters of the "Read barcode from PDF" action.


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

Result

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



  • Нет меток