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

Ключ

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

...

Read barcode from image Version 5 (Python)

Группа действий: Машинное зрение

Описание

Данное действие предназначено для поиска и считывания штрихкодов (линейных и двумерных - QR) с изображений.

Image Removed

Параметры

Входные данные

Путь к изображению                Путь к изображению для распознавания.

Выходные данные

Результат На выходе получаем строковую переменную, содержащую информацию из штрихкода.

 

Action group: Vision

...

Description

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

Image Added

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

Особые условия использования

Если на изображении несколько штрих-кодов, то будет обработан первый по расположению относительно левого верхнего угла изображения.

Извлекается только зашифрованная информация. Привязки к базе данных, для получения полной информации об объекте по числовым кодам не предусмотрено.

Ограничение по размеру используемого изображения 2 ГБ, иначе будет вызвана ошибка действия.

Пример использования 

Задача

Существует изображение с шрихкодом, необходимо считать данные по шрихкоду и записать результат в переменную типа "строка". 

Image Removed

Решение

Воспользоваться действием "Считать штрихкод с изображения". 

Реализация

...



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. 

Image Added

Solution

Use the "Read barcode from image" action. 

Implementation

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

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

  3. Click "start" in the top panel. 

Result

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

Результат

Программный робот отработал успешно. Данные по шрихкоду записаны в текстовую переменную