Skip to main content

Find OCR Closest Text Position

Description

This Activity finds the closest text position in the image using OCR's nearest match algorithm.

Properties

Input

  • Clipping Region – Specify the rectangular region in the image to search for the specific text.

  • Custom Percentage Match – When tolerance sets to custom, the values here determine how much percentage the text can differ from the search text.

  • Image File Path – Specify the image file's path to extract the text file.

  • OCR Engine – An instance of an OCR engine returned by one of the following activities.

  • Search Text – Specify the text to search in the specified image.

  • Tolerance – It uses Fuzzy String Comparison Tolerance. The string comparison tolerance level defines how much a text can differ from the search text. For example, it can be "Strong," "Normal," "Weak," or "Custom".

    OCR Tolerance

Misc

  • DisplayName – Add a display name to your Activity.
  • Private – By default, Activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the Activity throws an error. If True, the Activity continues without throwing any exceptions. If False, the Activity throws an exception. The default value is False.
    note

    Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.

Output

  • Exists – Specifies if search text exists in a given image.
  • Result – Returns the screen coordinates of the search text of type BoundingRect in a specified image.

Example

Download Example

Find OCR Closest Text Position