OCR

Estimated reading: 6 minutes 1008 views

The OCR (Optical Character Recognition) activity helps the user to recognize and extract the text from images.

Properties

EXISTING IMAGE

InputImage: *This parameter indicates the “input image” that has been provided either as a path or as bytes.
It accepts the values in “String” datatype. You can either hardcode the values in the “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.

TakeExistingImage: Indicates to process the existing image that has been passed as input. Specify the “Boolean” value as “True” or “False.”
True: It continues to take the existing image.
False: This option will not be considered.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

INPUT

LimitCharacters: Indicates the characters that needs to be limited while extracting text from the image. Select the value from the drop-down:
None: If the option is left blank, the activity will, by default, will not consider any option to limit.
Number: Specifies that only numeric characters (0-9) should be extracted.
Alpha: Indicates that only alphabetic characters (A-Z, a-z) should be extracted, excluding numeric and special characters.
AlphaNumeric: Specifies that both alphabetic and numeric characters should be extracted, while excluding special characters.
SpecialCharacters: Indicates that only special characters (e.g., @, #, $, %) should be extracted, excluding alphabetic and numeric characters.
Small Letters: Specifies that only lowercase alphabetic characters (a-z) should be extracted, excluding uppercase letters, numeric, and special characters.
Capital Letters: Indicates that only uppercase alphabetic characters (A-Z) should be extracted, excluding lowercase letters, numeric, and special characters.
NumberSpecialCharacter: Specifies that both numeric characters and special characters should be extracted, excluding alphabetic characters.

UseWindowTitle: Check this box if you want to use the window title option.

WindowTitle: *This parameter specifies to choose the applications from the list of active applications to where the text needs to be inputted. It 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.

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
Text: *This parameter helps to view the output of the activity as the text extracted from the provided image input. It returns the values in “String” datatype.

PROCESSED IMAGE

ProcessedImage: Indicates to provide the “Path” along with the name of the image to save the processed image. 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

REFINEMENT*

BgColour: Indicates the “Background” color of the image to process. Choose the option from drop-down:
White: It provides the processed image background as “White”.
Black: It provides the processed image background as “Black”.
By default, it will be chosen as “White”. This field gets auto filled from the RobilityOCR wizard.

ConsoleImage: Indicates to provide the processed image in a console or command-line during the execution. 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.
This field gets auto filled from the RobilityOCR wizard.

Language: Indicates to recognize and translate the text to opted language. Choose the option from drop-down:
English: Use this option to translate other language option to English.
Arabic: Use this option to translate other language options to Arabic.
By default, it will be chosen as “English”. This field gets auto filled from the RobilityOCR wizard.

ScaleImage: This parameter allows to adjust the size or dimensions of the input image. You can adjust the size in the “Image Property” option in the RobilityOCR wizard.
By default, it will be chosen as “small”. This field gets auto filled from the RobilityOCR wizard.
REGION*

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

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

X: Indicates the “X” position of the processed image. This field gets auto filled from the RobilityOCR wizard.

Y: Indicates the “Y” position of the processed image. This field gets auto filled from the RobilityOCR wizard.

* Represents mandatory fields to execute the workflow.

 

How to use Robility OCR Wizard

The RobilityOCR wizard appears only when we drag and drop the activity into the workflow. Follow the below steps to snip the image.
1. Drag and drop the activity into the workflow.
2. Another pop-up will appear on the screen indicating to choose the options as “Single OCR image” or “Browse an image”.
a. The “Single Text OCR” feature enables you to capture the entire image at once and configure its properties. You can choose this option when you want to use the image statically.
b. “Browsing an image” allows you to select an image from a specified path. You can choose this option when you need to dynamically change the image during execution.

3. Once you have chosen the option, the “RobilityOCR wizard” window will appear on the screen.
4. Customize the properties to refine the image, limit the characters and adjust the image size.
5. If you want to view the output of the modified image, choose “RUN OCR” option and the preview will be available in the “Preview” area.
6. Click on “Save” option when you have finished configuring the properties.

Share this Doc

OCR

Or copy link

CONTENTS