Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1p2beta1/classes.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb,
generated/google/apis/videointelligence_v1p2beta1/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.



4451
4452
4453
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4451

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

Instance Attribute Details

#explicit_annotationGoogle::Apis::VideointelligenceV1p2beta1::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



4434
4435
4436
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4434

def explicit_annotation
  @explicit_annotation
end

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

Label annotation results. Corresponds to the JSON property labelAnnotations



4439
4440
4441
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4439

def label_annotations
  @label_annotations
end

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

Object tracking results. Corresponds to the JSON property objectAnnotations



4444
4445
4446
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4444

def object_annotations
  @object_annotations
end

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

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



4449
4450
4451
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4449

def shot_annotations
  @shot_annotations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4456
4457
4458
4459
4460
4461
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4456

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