Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationConfig

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

Overview

Config for video classification human labeling task. Currently two types of video classification are supported: 1. Assign labels on the entire video. 2. Split the video into multiple video clips based on camera shot, and assign labels on each video clip.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1VideoClassificationConfig

Returns a new instance of GoogleCloudDatalabelingV1beta1VideoClassificationConfig.



4490
4491
4492
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4490

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

Instance Attribute Details

#annotation_spec_set_configsArray<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig>

Required. The list of annotation spec set configs. Since watching a video clip takes much longer time than an image, we support label with multiple AnnotationSpecSet at the same time. Labels in each AnnotationSpecSet will be shown in a group to contributors. Contributors can select one or more ( depending on whether to allow multi label) from each group. Corresponds to the JSON property annotationSpecSetConfigs



4482
4483
4484
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4482

def annotation_spec_set_configs
  @annotation_spec_set_configs
end

#apply_shot_detectionBoolean Also known as: apply_shot_detection?

Optional. Option to apply shot detection on the video. Corresponds to the JSON property applyShotDetection

Returns:

  • (Boolean)


4487
4488
4489
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4487

def apply_shot_detection
  @apply_shot_detection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4495
4496
4497
4498
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4495

def update!(**args)
  @annotation_spec_set_configs = args[:annotation_spec_set_configs] if args.key?(:annotation_spec_set_configs)
  @apply_shot_detection = args[:apply_shot_detection] if args.key?(:apply_shot_detection)
end