ImageEnhancement

Estimated reading: 5 minutes 1002 views

This activity assists the user in enhancing the quality of an image used for processing.

Properties

IMAGE ATTRIBUTES

BackgroundCleanAndBold: This parameter enables to clean up the background and bold characters in the image. Specify the “Boolean” value as “True” or “False.”
True: Continue to clean and bold the background of the image.
False: The option will not be considered.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

EdgeEnhancement: This parameter enables to enhance the edge of the input image and characters. Specify the “Boolean” value as “True” or “False.”
True: Continue to enhance the image.
False: The option will not be considered to enhance the image.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

ResizeScale: Indicates to provide the “re-size” value of the image if needed. This parameter accepts value in “Double” datatype.
You can either hardcode the value in “Double” format or can enter the values in “Double” datatype.

Sharpening: This parameter enables to sharpen the quality of the provided input image. Specify the “Boolean” value as “True” or “False.”
True: Continue to sharpen the quality of the image.
False: The option will not be considered.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

INPUT

ImageInput: *This parameter indicates to provide the “Path” of the input image that needs to be processed. It accepts values in “String” datatype.
You can either hardcode the values in “String” format or can enter the values in “string” datatype.
InputType: *Indicates the “type” of the input image that has been passed in the “InputImage” property. Select the option from the drop-down:
Path: Use this option to refer the location of the input image.
Bytes: Use this option to pass the input image in (binary data) “Bytes” format.
By default, the option will be set to “Path”.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the “Boolean” value as “True” or “False.”
True: Continue executing the workflow regardless of any errors thrown.
False:
 Halt the workflow if it encounters any errors.
None:
 If the option is left blank, the activity will, by default, behave as if “False” were chosen.
Version: 
It indicates the version of the feature being used.

OUTPUT

ImageOutput: *It helps to view the output of the activity as the processed image in the specified path. This parameter returns the value in “String” datatype. (Refer the tips below).

OutputType: Indicates to provide the “type” of the output image that has been passed in the “InputImage” property. Select the option from the drop-down:
Path: Use this option to refer the location of the output image.
Bytes: Use this option to pass the output image in (binary data) “Bytes” format. By default, the option will be set to “Path”.

SNIPPED IMAGE INPUTS

Height: Indicates the height of the snipped image. This field gets auto filled from the RobilityOCR wizard.

OnScreen: This parameter allows to view and interact with the image directly on the screen. Specify the “Boolean” value as “True” or “False.”
True: Allows to view the image on the screen.
False: The option will not be considered.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

UseWindowTitle: Check this box to use the window title.

Width: Indicates the width of the snipped image. This field gets auto filled from the RobilityOCR wizard.

WindowTitle: This parameter specifies to choose the applications from the list of active applications to where the text needs to be inputted. This parameter accepts values in “String” datatype. You have the option to either hardcode the values in the “String” variable or pass the values as “String” datatype.
X: Indicates the “X” position of the snipped image. This field gets auto filled from the RobilityOCR wizard.
Y: Indicates the “Y” position of the snipped image. This field gets auto filled from the RobilityOCR wizard.

* Represents mandatory fields to execute the workflow.

Here’s an example of how the activity is used in the workflow –

In the following example, I am going to use a sample image to enhance the quality.

Example

1. Create a new solution or open an existing workflow.
2. Drag and drop the image enhancement activity into the workflow and set it as start node.
3. Here I am navigating to the “ImageInput” in the properties section, to provide the path of the image.
4. Then, moving to the “Sharpening” in the properties section to enhance the image quality.
    a. Here I am specifying the value as “True”.
5. Now, moving to the “ImageOutput” property to provide the path of the image to store the output.
6. Next, moving to the “On-screen image” property specifying the value as true.
7. Now, Execute the workflow.

Share this Doc

ImageEnhancement

Or copy link

CONTENTS