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

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

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

Find documents in a file Version 4 (Python)

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


Description

The action searches for different types of documents in the source file and saves them as separate files. If necessary, orientation of documents will be corrected.

Action icon

Parameters and their settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
File pathThe path to the file from which you want to get individual documents. Supported formats: jpg, jpeg, bmp, png, pdf.Robin.FilePath
Yes
Folder pathThe path to the folder where the images of the found documents will be saved. The images will be created with the *.png extension, and their names will contain the name of the type of the corresponding document. If the field is not filled in, the images will be saved to the source file folder.Robin.FolderPathC:\doc\imgNo
OverwriteIf «true», and there are images with the same name and extension in the specified folder, then the new image will overwrite it. If «false», the image will not be overwritten and the action will return an error.Robin.BooleantrueNo
Add the source file to the nameIf «true», then the name of each image will contain the name of the source file and the name of the document type specified in the image. If «false», then the image names will contain only the names of document types.Robin.BooleantrueNo
Results
ResultA collection of paths to document images that were found in the source file. If several documents of the same type are found, an index will be added to the names of their images.Robin.Collection

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

Робот вернет ошибку, если:

  • в поле "Путь к файлу" подается недопустимый формат входного файла.
  • по указанному пути уже есть файл с указанным именем и поле "перезаписать" = false.

Робот НЕ вернет ошибку, вернет пустой результат, если:

  • на изображении нет документов, на которые нейросеть обучена делить документ (паспорт 2-3 стр, паспорт прописка, СНИЛС)

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

Задача: имеется скан паспорта и снилса, необходимо сохранить каждый документ, как отдельный файл. 


Решение: воспользоваться действием "Найти документы в файле". 

Реализация:

  1. Перенести действие "Найти документы в файле" на рабочую область. 

  2. Настроить параметры действия "Найти документы в файле". 
  3. Нажать на кнопку "Старт" в верхней панели. 


Результат:

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

 

В требуемую папку сохранены 2 изображения (паспорт и СНИЛС). 


  • Нет меток