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. Only ONE type of annotation will be specified in the response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults.



5957
5958
5959
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5957

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



5935
5936
5937
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5935

def explicit_annotation
  @explicit_annotation
end

#frame_timestampString

Timestamp of the processed frame in microseconds. Corresponds to the JSON property frameTimestamp

Returns:

  • (String)


5940
5941
5942
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5940

def frame_timestamp
  @frame_timestamp
end

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

Label annotation results. Corresponds to the JSON property labelAnnotations



5945
5946
5947
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5945

def label_annotations
  @label_annotations
end

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

Object tracking results. Corresponds to the JSON property objectAnnotations



5950
5951
5952
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5950

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



5955
5956
5957
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5955

def shot_annotations
  @shot_annotations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5962
5963
5964
5965
5966
5967
5968
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 5962

def update!(**args)
  @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
  @frame_timestamp = args[:frame_timestamp] if args.key?(:frame_timestamp)
  @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