Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EventConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EventConfig
- 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 event human labeling task.
Instance Attribute Summary collapse
-
#annotation_spec_sets ⇒ Array<String>
Required.
-
#clip_length ⇒ Fixnum
Videos will be cut to smaller clips to make it easier for labelers to work on.
-
#overlap_length ⇒ Fixnum
The overlap length between different video clips.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1EventConfig
constructor
A new instance of GoogleCloudDatalabelingV1beta1EventConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1EventConfig
Returns a new instance of GoogleCloudDatalabelingV1beta1EventConfig.
2043 2044 2045 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2043 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec_sets ⇒ Array<String>
Required. The list of annotation spec set resource name. Similar to video
classification, we support selecting event from multiple AnnotationSpecSet at
the same time.
Corresponds to the JSON property annotationSpecSets
2029 2030 2031 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2029 def annotation_spec_sets @annotation_spec_sets end |
#clip_length ⇒ Fixnum
Videos will be cut to smaller clips to make it easier for labelers to work on.
Users can configure is field in seconds, if not set, default value is 60s.
Corresponds to the JSON property clipLength
2035 2036 2037 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2035 def clip_length @clip_length end |
#overlap_length ⇒ Fixnum
The overlap length between different video clips. Users can configure is field
in seconds, if not set, default value is 1s.
Corresponds to the JSON property overlapLength
2041 2042 2043 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2041 def overlap_length @overlap_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2048 2049 2050 2051 2052 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2048 def update!(**args) @annotation_spec_sets = args[:annotation_spec_sets] if args.key?(:annotation_spec_sets) @clip_length = args[:clip_length] if args.key?(:clip_length) @overlap_length = args[:overlap_length] if args.key?(:overlap_length) end |