Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelVideoRequest

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

Request message for LabelVideo.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1LabelVideoRequest

Returns a new instance of GoogleCloudDatalabelingV1beta1LabelVideoRequest.



3428
3429
3430
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3428

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

Instance Attribute Details

#basic_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1HumanAnnotationConfig

Configuration for how human labeling task should be done. Corresponds to the JSON property basicConfig



3395
3396
3397
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3395

def basic_config
  @basic_config
end

#event_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EventConfig

Config for video event human labeling task. Corresponds to the JSON property eventConfig



3400
3401
3402
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3400

def event_config
  @event_config
end

#featureString

Required. The type of video labeling task. Corresponds to the JSON property feature

Returns:

  • (String)


3405
3406
3407
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3405

def feature
  @feature
end

#object_detection_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ObjectDetectionConfig

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. Corresponds to the JSON property objectDetectionConfig



3413
3414
3415
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3413

def object_detection_config
  @object_detection_config
end

#object_tracking_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ObjectTrackingConfig

Config for video object tracking human labeling task. Corresponds to the JSON property objectTrackingConfig



3418
3419
3420
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3418

def object_tracking_config
  @object_tracking_config
end

#video_classification_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationConfig

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. Corresponds to the JSON property videoClassificationConfig



3426
3427
3428
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3426

def video_classification_config
  @video_classification_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3433
3434
3435
3436
3437
3438
3439
3440
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3433

def update!(**args)
  @basic_config = args[:basic_config] if args.key?(:basic_config)
  @event_config = args[:event_config] if args.key?(:event_config)
  @feature = args[:feature] if args.key?(:feature)
  @object_detection_config = args[:object_detection_config] if args.key?(:object_detection_config)
  @object_tracking_config = args[:object_tracking_config] if args.key?(:object_tracking_config)
  @video_classification_config = args[:video_classification_config] if args.key?(:video_classification_config)
end