Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation

Inherits:
Object
  • Object
show all
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

Video classification annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation

Returns a new instance of GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation.



4457
4458
4459
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4457

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

Instance Attribute Details

#annotation_specGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec

Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as dog or cat must reference an AnnotationSpec for dog and an AnnotationSpec for cat. Corresponds to the JSON property annotationSpec



4450
4451
4452
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4450

def annotation_spec
  @annotation_spec
end

#time_segmentGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TimeSegment

A time period inside of an example that has a time dimension (e.g. video). Corresponds to the JSON property timeSegment



4455
4456
4457
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4455

def time_segment
  @time_segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4462
4463
4464
4465
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4462

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