Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults

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



5859
5860
5861
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5859

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

Instance Attribute Details

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



5837
5838
5839
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5837

def explicit_annotation
  @explicit_annotation
end

#frame_timestampString

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

Returns:

  • (String)


5842
5843
5844
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5842

def frame_timestamp
  @frame_timestamp
end

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

Label annotation results. Corresponds to the JSON property labelAnnotations



5847
5848
5849
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5847

def label_annotations
  @label_annotations
end

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

Object tracking results. Corresponds to the JSON property objectAnnotations



5852
5853
5854
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5852

def object_annotations
  @object_annotations
end

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

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



5857
5858
5859
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5857

def shot_annotations
  @shot_annotations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5864
5865
5866
5867
5868
5869
5870
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5864

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