Class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1p1beta1/classes.rb,
generated/google/apis/videointelligence_v1p1beta1/representations.rb,
generated/google/apis/videointelligence_v1p1beta1/representations.rb

Overview

Streaming annotation results corresponding to a portion of the video that is currently being processed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults



4182
4183
4184
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4182

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#explicit_annotationGoogle::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation

Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame. Corresponds to the JSON property explicitAnnotation



4165
4166
4167
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4165

def explicit_annotation
  @explicit_annotation
end

#label_annotationsArray<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>

Label annotation results. Corresponds to the JSON property labelAnnotations



4170
4171
4172
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4170

def label_annotations
  @label_annotations
end

#object_annotationsArray<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>

Object tracking results. Corresponds to the JSON property objectAnnotations



4175
4176
4177
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4175

def object_annotations
  @object_annotations
end

#shot_annotationsArray<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment>

Shot annotation results. Each shot is represented as a video segment. Corresponds to the JSON property shotAnnotations



4180
4181
4182
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4180

def shot_annotations
  @shot_annotations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4187
4188
4189
4190
4191
4192
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4187

def update!(**args)
  @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
  @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
end