Class AzureGroundingEnhancementLineSpan

java.lang.Object
com.azure.ai.openai.models.AzureGroundingEnhancementLineSpan

public final class AzureGroundingEnhancementLineSpan extends Object
A span object that represents a detected object and its bounding box information.
  • Method Details

    • getText

      public String getText()
      Get the text property: The text content of the span that represents the detected object.
      Returns:
      the text value.
    • getOffset

      public int getOffset()
      Get the offset property: The character offset within the text where the span begins. This offset is defined as the position of the first character of the span, counting from the start of the text as Unicode codepoints.
      Returns:
      the offset value.
    • getLength

      public int getLength()
      Get the length property: The length of the span in characters, measured in Unicode codepoints.
      Returns:
      the length value.
    • getPolygon

      Get the polygon property: An array of objects representing points in the polygon that encloses the detected object.
      Returns:
      the polygon value.