Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext

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

Overview

Video context and/or feature-specific parameters.

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) ⇒ GoogleCloudVideointelligenceV1beta1VideoContext

Returns a new instance of GoogleCloudVideointelligenceV1beta1VideoContext



791
792
793
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 791

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

Instance Attribute Details

#label_detection_modeString

If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to SHOT_MODE. Corresponds to the JSON property labelDetectionMode

Returns:

  • (String)


757
758
759
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 757

def label_detection_mode
  @label_detection_mode
end

#label_detection_modelString

Model to use for label detection. Supported values: "latest" and "stable" (the default). Corresponds to the JSON property labelDetectionModel

Returns:

  • (String)


763
764
765
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 763

def label_detection_model
  @label_detection_model
end

#safe_search_detection_modelString

Model to use for safe search detection. Supported values: "latest" and "stable" (the default). Corresponds to the JSON property safeSearchDetectionModel

Returns:

  • (String)


769
770
771
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 769

def safe_search_detection_model
  @safe_search_detection_model
end

#segmentsArray<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment>

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment. Corresponds to the JSON property segments



776
777
778
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 776

def segments
  @segments
end

#shot_change_detection_modelString

Model to use for shot change detection. Supported values: "latest" and "stable" (the default). Corresponds to the JSON property shotChangeDetectionModel

Returns:

  • (String)


782
783
784
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 782

def shot_change_detection_model
  @shot_change_detection_model
end

#stationary_cameraBoolean Also known as: stationary_camera?

Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects. Corresponds to the JSON property stationaryCamera

Returns:

  • (Boolean)


788
789
790
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 788

def stationary_camera
  @stationary_camera
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



796
797
798
799
800
801
802
803
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 796

def update!(**args)
  @label_detection_mode = args[:label_detection_mode] if args.key?(:label_detection_mode)
  @label_detection_model = args[:label_detection_model] if args.key?(:label_detection_model)
  @safe_search_detection_model = args[:safe_search_detection_model] if args.key?(:safe_search_detection_model)
  @segments = args[:segments] if args.key?(:segments)
  @shot_change_detection_model = args[:shot_change_detection_model] if args.key?(:shot_change_detection_model)
  @stationary_camera = args[:stationary_camera] if args.key?(:stationary_camera)
end