Interface TextDetection.Builder

  • Method Details

    • detectedText

      TextDetection.Builder detectedText(String detectedText)

      The word or line of text recognized by Amazon Rekognition.

      Parameters:
      detectedText - The word or line of text recognized by Amazon Rekognition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of text that was detected.

      Parameters:
      type - The type of text that was detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of text that was detected.

      Parameters:
      type - The type of text that was detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      The identifier for the detected text. The identifier is only unique for a single call to DetectText.

      Parameters:
      id - The identifier for the detected text. The identifier is only unique for a single call to DetectText.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parentId

      TextDetection.Builder parentId(Integer parentId)

      The Parent identifier for the detected text identified by the value of ID. If the type of detected text is LINE, the value of ParentId is Null.

      Parameters:
      parentId - The Parent identifier for the detected text identified by the value of ID. If the type of detected text is LINE, the value of ParentId is Null.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confidence

      TextDetection.Builder confidence(Float confidence)

      The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.

      Parameters:
      confidence - The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geometry

      TextDetection.Builder geometry(Geometry geometry)

      The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.

      Parameters:
      geometry - The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geometry

      default TextDetection.Builder geometry(Consumer<Geometry.Builder> geometry)

      The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.

      This is a convenience method that creates an instance of the Geometry.Builder avoiding the need to create one manually via Geometry.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to geometry(Geometry).

      Parameters:
      geometry - a consumer that will call methods on Geometry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: