Interface TextDetectionResult.Builder

  • Method Details

    • timestamp

      TextDetectionResult.Builder timestamp(Long timestamp)

      The time, in milliseconds from the start of the video, that the text was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the text first appears.

      Parameters:
      timestamp - The time, in milliseconds from the start of the video, that the text was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the text first appears.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textDetection

      TextDetectionResult.Builder textDetection(TextDetection textDetection)

      Details about text detected in a video.

      Parameters:
      textDetection - Details about text detected in a video.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textDetection

      default TextDetectionResult.Builder textDetection(Consumer<TextDetection.Builder> textDetection)

      Details about text detected in a video.

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

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

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