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

Ключ

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

...

Create context with Robin OCR 2

...

Version 3 (Python)

Группа действийAction group: Robin OCR

Описание

...

Description

The action creates a context for working with Действие создает контекст для работы с Robin OCR 2.


Параметры действия 

Action parameters

Example of an address: Пример адреса: http://testhost:8080/api/v1/ocr/gettext/abt

Поле The "Язык" по умолчанию – Английский – необходимо указать предполагаемый язык текста.

Поле "Протокол" по умолчанию - http – указывается стандарт, описывающий правила взаимодействия функциональных блоков при передаче данных.

Поле "Адрес сервера" по умолчанию - 127.0.0.1 – указывается уникальный идентификатор, который позволяет определить физическое местоположение сервера и обеспечивает возможность соединения с ним через сеть.

Поле "Порт" по умолчанию - 8080 – указывается числовой идентификатор программы или процесса, которые обслуживают сетевые соединения на заданном сетевом адресе (IP-адресе). 

Поле "Версия API" по умолчанию - 1 – указывается запрашиваемая версия сервера.

Поле "Функция" по умолчанию - ocr/gettext/abt – указывается параметры, определяющие какое действие можно выполнить с документом.

Поле "Результат" – Экземпляр Robin OCR 2.

  1. Если у пользователя занят порт 8080, то необходимо указать другой свободный порт.
  2. На данный момент реализована только одна функция - ocr/gettext/abt (Массив текста с координатами) и одна версия сервера.

Действие выдаст ошибку, если с указанными значениями параметров нельзя подключиться к серверу с системой исполнения. Описание ошибки: "Указаны неверные данные для подключения к серверу системы распознавания и работы с ней.".

Настройки

...

Свойство

...

Описание

...

Тип

...

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

...

Обязательность заполнения поля

...

Параметры

...

Язык

Предполагаемый язык текста, который необходимо извлечь.

Выпадающий список из элементов: Русский язык, Английский язык, Испанский язык, Португальский язык. Значение по умолчанию - Английский язык.

...

Robin.String

...

Нет

Language" field by default - English - you need to specify the intended language of the text.

The "Protocol" field by default - http - specifies the standard describing the rules of interaction between functional blocks during data transfer.

The "Server address" field by default - 127.0.0.1 - specifies a unique identifier that allows you to determine the physical location of the server and provides the ability to connect to it through the network.

The "Port" field by default - 8080 - specifies the numeric identifier of the program or workflow that services network connections at the specified network address (IP address). 

The "API Version" field by default - 1 - specifies the requested server version.

The "Function" field by default - ocr/gettext/abt - specifies the parameters that determine what action can be performed on the document.

The "Result" field - Robin OCR 2 instance.

  1. If the user's port 8080 is busy, another free port must be specified.
  2. At the moment only one function - ocr/gettext/abt (Array of text with coordinates) and one server version are implemented.

The action will generate an error if you cannot connect to a server with a runtime system with the specified parameter values. Error description: "Incorrect data are specified for connecting to the server of the recognition system and working with it.".

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
LanguageThe intended language of the text to be extracted.Robin.String
No
ProtocolData transfer protocol. The default value is «http».Robin.String
No
Server addressThe name or IP address of the device on which the recognition system is installed. The default value is «127.0.0.1».Robin.String
No
PortThe port for the server. Filled in by the user only if port 8080 is occupied by another server. The default value is «8080».Robin.Numeric
No
API VersionServer version. The default value is «1».Robin.String
No
FunctionFunction that defines what action can be performed on the document. The default value is «ocr/gettext/abt».Robin.String
No
Results
ResultAction context for working with Robin OCR 2.Robin.OCR2

Special conditions of use

None.

Example of use

Task

Recognize license plate number from the image 

Image Added

Solution

Use the actions "Create context with Robin OCR 2 ", "Extract text from file". 

Implementation

  1. Assemble a robot scheme consisting of actions:
    Image Added
  2. Set the parameters of the "Create context with Robin OCR 2 " action. 
    Image Added
  3. Set the parameters of the "Extract text from file" action. 
    Image Added
  4. Click on the "Start" button in the top panel. 

Result

The program robot worked successfully. 

The license plate number has been recognized. 

Image Added

The file with overlaid blocks is saved to the specified folder

...

Результат

...

Результат

...

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

Отсутствуют.

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

Задача: распознать номер автомобиля с изображения 

Image Removed

Решение: воспользоваться действиями "Создать контекст с Robin OCR 2 ", "Извлечь текст из изображения". 

Реализация:

  1. Собрать схему робота, состоящую из действий:
    Image Removed
  2. Настроить параметр действия "Создать контекст  с Robin OCR 2 ". 
    Image Removed
  3. Настроить параметры действия "Извлечь текст из изображения". 
    Image Removed
  4. Нажать на кнопку "Старт" в верхней панели. 

Результат:

Программный робот отработал успешно. 

Номер авто распознан. 

Image Removed

Файл с наложенными блоками сохранен в указанную папку