Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ObjectDetectionConfig

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

Config for video object detection human labeling task. Object detection will be conducted on the images extracted from the video, and those objects will be labeled with bounding boxes. User need to specify the number of images to be extracted per second as the extraction frame rate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ObjectDetectionConfig

Returns a new instance of GoogleCloudDatalabelingV1beta1ObjectDetectionConfig.



3749
3750
3751
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3749

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

Instance Attribute Details

#annotation_spec_setString

Required. Annotation spec set resource name. Corresponds to the JSON property annotationSpecSet

Returns:

  • (String)


3742
3743
3744
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3742

def annotation_spec_set
  @annotation_spec_set
end

#extraction_frame_rateFloat

Required. Number of frames per second to be extracted from the video. Corresponds to the JSON property extractionFrameRate

Returns:

  • (Float)


3747
3748
3749
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3747

def extraction_frame_rate
  @extraction_frame_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3754
3755
3756
3757
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3754

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