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 is set 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.   - Create Google Cloud OCR Engine   - Create MODI OCR Engine   - Create Tesseract OCR Engine
  • 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

It does not catch an 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.

Tesseract

Example

Download Example

Find OCR Closest Text Position