Configuring UIObjects

On this page

Stego provides 7 UIObject types. To add one, drag the UIObject you want into the UIObject Field.

OD icon
OD (Object Detection)
Detects 15+ common mobile UI element types such as icons and buttons.
OCR icon
OCR (Optical Character Recognition)
Reads numbers and text displayed on the screen.
Crop Image icon
Crop Image
Finds the region on the screen that matches a specified image.
Custom Box icon
Custom Box
Targets a specific position on the screen by setting a fixed area.
Crop Image icon
Full Screen
Selects the entire screen.
Crop Image icon
Accessibility
Provides screen analysis results for secure or protected screens.
Crop Image icon
Relative
First anchor to a fixed object using OD, OCR, or Crop Image, then select the area you want to monitor relative to that anchor.

OD (object detection)

OD uses buttons, menus, input fields, and other elements recognized by AI in mobile apps as UIObjects.

Inspector

When selecting an OD UIObject, the Inspector panel displays:

  • LABEL: UIObject type
  • TEXT: Contained text (if any)
  • BOX: Position information on the screen

Attributes

Click OD in the UIObject Field to configure attributes.

  • Label: Defines the UIObject type
  • Text: Updates the UIObject text and sets a comparator
    • Comparator
      • =: Matches when text exactly equals the value
      • *=: Matches when text contains the value
      • ^=: Matches when text begins with the value
      • $=: Matches when text ends with the value
      • search: Matches using a regular expression
      • not used: Ignores the text comparator
  • Text Similarity (Threshold): Applies only with = comparator
    • Sets the required similarity for text matching
    • Adjust when recognition differs by resolution or environment
    • Higher values demand stricter matches (default: 0.8, range: 0–1)
  • Case Sensitivity: Defines whether text matching distinguishes case
  • Selector: Defines the order when multiple UIObjects match
    • BestMatch selects the most suitable UIObject match. (Default option for Selector.)
    • Positive numbers select from the top-left, moving in reading order across the screen (1, 2, 3…).
    • Negative numbers select from the bottom-right, starting with the last detected match. (-1, -2, -3…)

OCR (optical character recognition)

Uses text from UIObjects. Supports English, Korean, numbers, and some special characters.

OCR detects text in word units.
To treat multiple words as one UIObject, drag them together.

Inspector

Displays OCR-detected UIObject details in the Inspector panel:

  • TEXT: Text contained in the UIObject
  • BOX: Position of the UIObject on the screen

Attributes

Click OCR in the UIObject Field to edit attributes.

  • Text: Updates the UIObject text and sets a comparator
    • Comparator
      • =: Matches when text exactly equals the value
      • *=: Matches when text contains the value
      • ^=: Matches when text begins with the value
      • $=: Matches when text ends with the value
      • search: Matches using a regular expression
  • Ignore Line Break
    • Applies only with the = comparator
    • Treats text as a continuous string, ignoring line breaks when checking for an exact match
    • Useful when OCR splits a single sentence into multiple lines
  • Text Similarity (Threshold): Applies only with = comparator
    • Sets the required similarity for text matching
    • Adjust when recognition differs by resolution or environment
    • Higher values demand stricter matches (default: 0.8, range: 0–1)
  • Case Sensitivity: Defines whether text matching distinguishes case
  • Font Style Sensitivity: Defines whether text matching distinguishes font style
  • Selector: Defines the order when multiple UIObjects match
    • BestMatch selects the most suitable UIObject match. (Default option for Selector.)
    • Positive numbers select from the top-left, moving in reading order across the screen (1, 2, 3…)
    • Negative numbers select from the bottom-right, starting with the last detected match. (-1, -2, -3…)

Crop Image

Use Crop Image to detect a specific image region on the screen.

Drag on the device screen to define the target area.
Excluding unnecessary background improves detection accuracy.

Attributes

Click Crop Image in the UIObject Field to edit coordinates.

  • Left: X coordinate of the top-left corner
  • Top: Y coordinate of the top-left corner
  • Right: X coordinate of the bottom-right corner
  • Bottom: Y coordinate of the bottom-right corner

Custom Box

Defines a specific area on the screen.

Drag on the device screen to set the area.
Use for actions across wide regions such as scrolling or swiping.

Attributes

Click Custom Box in the UIObject Field to edit coordinates.

  • Left: X coordinate of the top-left corner
  • Top: Y coordinate of the top-left corner
  • Right: X coordinate of the bottom-right corner
  • Bottom: Y coordinate of the bottom-right corner

Full Screen

Use the entire screen as a UIObject.

Attributes

The Full Screen UIObject represents the entire screen area, so its attributes cannot be edited or adjusted.

  • Left: X coordinate of the top-left corner
  • Top: Y coordinate of the top-left corner
  • Right: X coordinate of the bottom-right corner
  • Bottom: Y coordinate of the bottom-right corner

Accessibility

Use when the screen does not display normally due to security settings, such as a black screen or hidden areas.

Set by selecting a UIObject in the Inspector and dragging it to the field.

Inspector

Displays information about UIObjects detected through Accessibility.

  • IDENTIFIER: Text that distinguishes the UIObject (if provided by the app)
  • TYPE: UIObject type
  • TEXT: Text contained in the UIObject (if any)
  • BOX: UIObject position information on screen

Attributes

Click Accessibility in the UIObject Field to configure attributes.

  • Identifier: Defines the UIObject identifier text (if provided by the app, e.g., ReloadButton)
    • Comparator
      • =: Matches when the identifier exactly equals the value
      • *=: Matches when the Identifier contains the specified value
      • ^=: Matches when the Identifier begins with the specified value
      • $=: Matches when the Identifier ends with the specified value
      • search: Matches when the Identifier satisfies the given regular expression pattern
      • not used: Ignores the identifier comparator
  • Type: Defines the UIObject type (if provided by the app, e.g., Button)
    • Comparator
      • =: Matches when the type exactly equals the value
      • not used: Ignores the type comparator
  • Text: Updates the UIObject text and sets a comparator
    • Comparator
      • =: Matches when text exactly equals the value
      • *=: Matches when text contains the value
      • ^=: Matches when text begins with the value
      • $=: Matches when text ends with the value
      • search: Matches using a regular expression
      • not used: Ignores the text comparator
  • Text Similarity (Threshold): Applies only with = comparator
    • Sets the required similarity for text matching
    • Adjust when recognition differs by resolution or environment
    • Higher values demand stricter matches (default: 0.8, range: 0–1)
  • Case Sensitivity: Defines whether text matching distinguishes case
  • Font Style Sensitivity: Defines whether text matching distinguishes font style
  • Selector: Defines the order when multiple UIObjects match
    • Positive numbers select from the top-left in reading order (1, 2, 3…)
    • Negative numbers select from the bottom-right, starting with the last detected match (-1, -2, -3…)

Relative

Use Relative when you need to define a UIObject based on the position of another reference UIObject.
The relative position follows the reference even when the device resolution or layout changes.

Select a UIObject, then click the Relative button to configure relative positioning.
The reference UIObject appears in yellow, and the Relative area appears in blue.

Note
Relative can be applied to any UIObject type except Full Screen.

Attributes

Click Relative in the UIObject Field to configure attributes.

Reference UIObject (e.g., OCR): Inherits attributes from the selected reference UIObject type

Relative: Defines the coordinates of the UIObject that exists at a position relative to the reference UIObject.

  • Left: X coordinate of the top-left corner
  • Top: Y coordinate of the top-left corner
  • Right: X coordinate of the bottom-right corner
  • Bottom: Y coordinate of the bottom-right corner