Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/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
-
#annotation_spec_set_configs ⇒ Array<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig>
Required.
-
#apply_shot_detection ⇒ Boolean
(also: #apply_shot_detection?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1VideoClassificationConfig
constructor
A new instance of GoogleCloudDatalabelingV1beta1VideoClassificationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1VideoClassificationConfig
Returns a new instance of GoogleCloudDatalabelingV1beta1VideoClassificationConfig.
4490 4491 4492 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4490 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec_set_configs ⇒ Array<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 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4482 def annotation_spec_set_configs @annotation_spec_set_configs end |
#apply_shot_detection ⇒ Boolean Also known as: apply_shot_detection?
Optional. Option to apply shot detection on the video.
Corresponds to the JSON property applyShotDetection
4487 4488 4489 |
# File 'lib/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 'lib/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 |