Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EventConfig

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 event human labeling task.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_setsArray<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

Returns:

  • (Array<String>)


2029
2030
2031
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2029

def annotation_spec_sets
  @annotation_spec_sets
end

#clip_lengthFixnum

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

Returns:

  • (Fixnum)


2035
2036
2037
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2035

def clip_length
  @clip_length
end

#overlap_lengthFixnum

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

Returns:

  • (Fixnum)


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