Skip to main content

Get OCR Text

Extracts a string and its information from an indicated UI element using the OCR screen scraping method. This activity can also be automatically generated when performing screen scraping, along with a container.

Input

  • Element: Use the UIElement variable returned by another activity.This property cannot be used alongside the Selector property. This field supports only UIElement variables.
    • Type: ArenaRobotics.Domain.Entities.UIElement
    • Required
  • Selector: Text property used to find a particular UI element when the activity is executed.It is actually a XML fragment specifying attributes of the GUI element you are looking for and of some of its parents.
    • Type: System.String
    • Required
  • FPoint: Helps to make the image more readable by enlarging or reducing the size of the image by the entered setting in the OCR library. Note: Making the image too large does not mean that the image is read very well. When the image is too large, breaks can occur.
    • Type: System.Int32
    • Required
  • Language Type: OCR Language Type
    • Type: System.Int32
    • Required
    • Dropdown Options:
      • All
      • Eng
      • Tur
      • Deu
      • Fra
      • Hin
      • Ita
      • Lat
      • Rus
      • Spa
  • Config Type: Config Type of OCR
    • Type: System.Int32
    • Dropdown Options:
      • None
      • PSM 4
      • PSM 4 Only Digits
      • PSM 6
      • PSM 6 Only Digits
      • PSM 11
      • PSM 11 Only Digits
  • Is Scanned: Indicates whether the relevant image was scanned by a browser.
    • Type: System.Boolean

Output

  • Text: It gives the outputs of the text contained in the interface element.
    • Type: System.Collections.Generic.IEnumerable<System.String>
    • Required

Common

  • Delay After: Delay time (in milliseconds) after executing the activity. The default amount of time is 300 milliseconds.
    • Type: System.Int32
  • Timeout: Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds(30 seconds).
    • Type: System.Int32
    • Required
  • Delay Before: Delay time (in milliseconds) before the activity begins performing any operations. The default amount of time is 200 milliseconds.
    • Type: System.Int32