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

Ключ

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

Process the image of the text document Version

...

2 (python)

Action group: Robin OCR

Description

The action performs automatic image processing of a text document to improve its quality.

Action icon

Action parameters

Input parameters

  1. "Image" field - specify the image of acceptable format to be processed.
  2. "Page number" field - indicates the page number, if the submitted document is multi-page, for example, *.png.
  3. "Brightness and contrast preprocessing" field - indicates whether preprocessing is necessary or not. Brightness and contrast of the image will be corrected at the beginning of processing. If the "Brightness and contrast postprocessing" field is also checked, postprocessing will be used by default.
  4. "Correct distortions" field - indicates whether it is necessary to correct plane distortions.
  5. "Align horizontally" field - indicates whether it is necessary to align the image horizontally.
  6. "Brightness and contrast post-processing" field - indicates whether it is necessary to perform pre-processing. Brightness and contrast of the image will be corrected at the end of processing. If the "Brightness and contrast post-processing" field is also checked, postprocessing will be used by default.
  7. "Folder path" field - specifies the path where you want to save the processed image.
  8. "File name" field - specifies a new name for the processed image file.
  9. "Format" field - specifies the format in which the processed image will be saved.
  10. "Overwrite" field - indicates whether it is necessary to overwrite the file in the specified folder.

Output parameters

  1. Result - Path to the image file.

...

Parameters and their settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ImageThe path to the image file of the document to be processed.Robin.FilePath
Yes
Page numberThe page number of the file to be processed. If the field is not filled in, the processing will be applied to all pages of the file. If the image is not in tiff or tif format, the field will not be taken into account.Robin.Numeric
No
Brightness and contrast preprocessingThe page number of the file to be processedIf the value is «true», then the brightness and contrast of the image will be corrected at the beginning of processing. If the value of «Brightness and Contrast Postprocessing» is also «true», then postprocessing will be used by default.Robin.BooleantrueNo
Correct distortionsIf the value is «true», then all distortions in the plane will be corrected in the image.Robin.BooleantrueNo
Align horizontallyIf the value is «true», then the image will be aligned horizontally.Robin.BooleantrueNo
Brightness and contrast post- processingIf the value is «true», then the brightness and contrast of the image will be corrected at the end of processing. If the value «Brightness and Contrast Preprocessing» is also true, then postprocessing will be used by default.Robin.BooleantrueNo
Folder pathThe path to the folder where the processed image file will be saved. If the field remains empty, the file will be saved in the source folder.Robin.FolderPathC:\doc\imgNo
File nameThe name of the processed image file. If the field remains empty, the original file name will be saved.Robin.String
No
FormatThe format in which the processed image file will be saved. If the field remains empty, the file is saved in the same format as the original image.Robin.String
No
OverwriteIf the value is «true» and an image file with the same name and extension exists in the specified folder, then the new file will overwrite it. If «false», the file will not be overwritten and the action will return an error.Robin.BooleantrueNo
Results
ResultThe path to the processed image file.Robin.FilePath

...