Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoContext

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

Overview

Video context and/or feature-specific parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2VideoContext

Returns a new instance of GoogleCloudVideointelligenceV1beta2VideoContext.



2682
2683
2684
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2682

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

Instance Attribute Details

#explicit_content_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION. Corresponds to the JSON property explicitContentDetectionConfig



2638
2639
2640
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2638

def explicit_content_detection_config
  @explicit_content_detection_config
end

#face_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2FaceDetectionConfig

Config for FACE_DETECTION. Corresponds to the JSON property faceDetectionConfig



2643
2644
2645
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2643

def face_detection_config
  @face_detection_config
end

#label_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelDetectionConfig

Config for LABEL_DETECTION. Corresponds to the JSON property labelDetectionConfig



2648
2649
2650
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2648

def label_detection_config
  @label_detection_config
end

#object_tracking_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig

Config for OBJECT_TRACKING. Corresponds to the JSON property objectTrackingConfig



2653
2654
2655
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2653

def object_tracking_config
  @object_tracking_config
end

#person_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2PersonDetectionConfig

Config for PERSON_DETECTION. Corresponds to the JSON property personDetectionConfig



2658
2659
2660
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2658

def person_detection_config
  @person_detection_config
end

#segmentsArray<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment>

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



2665
2666
2667
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2665

def segments
  @segments
end

#shot_change_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION. Corresponds to the JSON property shotChangeDetectionConfig



2670
2671
2672
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2670

def shot_change_detection_config
  @shot_change_detection_config
end

#speech_transcription_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION. Corresponds to the JSON property speechTranscriptionConfig



2675
2676
2677
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2675

def speech_transcription_config
  @speech_transcription_config
end

#text_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2TextDetectionConfig

Config for TEXT_DETECTION. Corresponds to the JSON property textDetectionConfig



2680
2681
2682
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2680

def text_detection_config
  @text_detection_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2687

def update!(**args)
  @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config)
  @face_detection_config = args[:face_detection_config] if args.key?(:face_detection_config)
  @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config)
  @object_tracking_config = args[:object_tracking_config] if args.key?(:object_tracking_config)
  @person_detection_config = args[:person_detection_config] if args.key?(:person_detection_config)
  @segments = args[:segments] if args.key?(:segments)
  @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config)
  @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config)
  @text_detection_config = args[:text_detection_config] if args.key?(:text_detection_config)
end