История страницы
...
Read barcode from image Version 5 (Python)
Группа действий: Машинное зрение
Описание
Данное действие предназначено для поиска и считывания штрихкодов (линейных и двумерных - QR) с изображений.
Параметры
Входные данные
Путь к изображению Путь к изображению для распознавания.
Выходные данные
Результат На выходе получаем строковую переменную, содержащую информацию из штрихкода.
Настройки
...
Путь к изображению для распознавания.
Допустимые расширения: ".jpeg", ".jpg", ".bmp", ".png", ".tif", ".tiff"
Если алгоритм не нашел расширение файла или тип файла неприменим, будет выведено предупреждение.
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
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Image | The 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.Image | C:\doc\img.png | Yes |
Results | ||||
Result | String 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
- Move the "Read barcode from image" action to the workspace.
- Set the "Read barcode from image" action parameters.
- Click "start" in the top panel.
Result
The program robot completed successfully. The data from the barcode was written in the text variable.
...
Изображение
...
Строковая переменная, содержащая информацию из штрихкода.
Пустое значение, если штрих-кода на изображении нет.
...
Особые условия использования
Если на изображении несколько штрих-кодов, то будет обработан первый по расположению относительно левого верхнего угла изображения.
Извлекается только зашифрованная информация. Привязки к базе данных, для получения полной информации об объекте по числовым кодам не предусмотрено.
Ограничение по размеру используемого изображения 2 ГБ, иначе будет вызвана ошибка действия.
Пример использования
Задача
Существует изображение с шрихкодом, необходимо считать данные по шрихкоду и записать результат в переменную типа "строка".
Решение
Воспользоваться действием "Считать штрихкод с изображения".
Реализация
...
Результат
Программный робот отработал успешно. Данные по шрихкоду записаны в текстовую переменную.