Class DetectedTextWord

java.lang.Object
com.azure.ai.vision.imageanalysis.models.DetectedTextWord

public final class DetectedTextWord extends Object
A word object consisting of a contiguous sequence of characters. For non-space delimited languages, such as Chinese, Japanese, and Korean, each character is represented as its own word.
  • Method Details

    • getText

      public String getText()
      Get the text property: Text content of the word.
      Returns:
      the text value.
    • getBoundingPolygon

      public List<ImagePoint> getBoundingPolygon()
      Get the boundingPolygon property: A bounding polygon around the word. At the moment only quadrilaterals are supported (represented by 4 image points).
      Returns:
      the boundingPolygon value.
    • getConfidence

      public double getConfidence()
      Get the confidence property: The level of confidence that the word was detected. Confidence scores span the range of 0.0 to 1.0 (inclusive), with higher values indicating a higher confidence of detection.
      Returns:
      the confidence value.