class Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2TextAnnotation

Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.

Attributes

segments[RW]

All video segments where OCR detected text appears. Corresponds to the JSON property `segments` @return [Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2TextSegment>]

text[RW]

The detected text. Corresponds to the JSON property `text` @return [String]

version[RW]

Feature version. Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/videointelligence_v1p2beta1/classes.rb, line 1887
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/videointelligence_v1p2beta1/classes.rb, line 1892
def update!(**args)
  @segments = args[:segments] if args.key?(:segments)
  @text = args[:text] if args.key?(:text)
  @version = args[:version] if args.key?(:version)
end