История страницы
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
- "Image" field - specify the image of acceptable format to be processed.
- "Page number" field - indicates the page number, if the submitted document is multi-page, for example, *.png.
- "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.
- "Correct distortions" field - indicates whether it is necessary to correct plane distortions.
- "Align horizontally" field - indicates whether it is necessary to align the image horizontally.
- "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.
- "Folder path" field - specifies the path where you want to save the processed image.
- "File name" field - specifies a new name for the processed image file.
- "Format" field - specifies the format in which the processed image will be saved.
- "Overwrite" field - indicates whether it is necessary to overwrite the file in the specified folder.
Output parameters
- Result - Path to the image file.
...
Parameters and their settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Image | The path to the image file of the document to be processed. | Robin.FilePath | Yes | |
Page number | The 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 preprocessing | The 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.Boolean | true | No |
Correct distortions | If the value is «true», then all distortions in the plane will be corrected in the image. | Robin.Boolean | true | No |
Align horizontally | If the value is «true», then the image will be aligned horizontally. | Robin.Boolean | true | No |
Brightness and contrast post- processing | If 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.Boolean | true | No |
Folder path | The 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.FolderPath | C:\doc\img | No |
File name | The name of the processed image file. If the field remains empty, the original file name will be saved. | Robin.String | No | |
Format | The 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 | |
Overwrite | If 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.Boolean | true | No |
Results | ||||
Result | The path to the processed image file. | Robin.FilePath |
...
Обзор
Инструменты контента