Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelImageRequest

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 starting an image labeling task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1LabelImageRequest

Returns a new instance of GoogleCloudDatalabelingV1beta1LabelImageRequest.



3063
3064
3065
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3063

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



3036
3037
3038
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3036

def basic_config
  @basic_config
end

#bounding_poly_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BoundingPolyConfig

Config for image bounding poly (and bounding box) human labeling task. Corresponds to the JSON property boundingPolyConfig



3041
3042
3043
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3041

def bounding_poly_config
  @bounding_poly_config
end

#featureString

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

Returns:

  • (String)


3046
3047
3048
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3046

def feature
  @feature
end

#image_classification_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageClassificationConfig

Config for image classification human labeling task. Corresponds to the JSON property imageClassificationConfig



3051
3052
3053
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3051

def image_classification_config
  @image_classification_config
end

#polyline_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PolylineConfig

Config for image polyline human labeling task. Corresponds to the JSON property polylineConfig



3056
3057
3058
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3056

def polyline_config
  @polyline_config
end

#segmentation_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SegmentationConfig

Config for image segmentation Corresponds to the JSON property segmentationConfig



3061
3062
3063
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3061

def segmentation_config
  @segmentation_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3068
3069
3070
3071
3072
3073
3074
3075
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3068

def update!(**args)
  @basic_config = args[:basic_config] if args.key?(:basic_config)
  @bounding_poly_config = args[:bounding_poly_config] if args.key?(:bounding_poly_config)
  @feature = args[:feature] if args.key?(:feature)
  @image_classification_config = args[:image_classification_config] if args.key?(:image_classification_config)
  @polyline_config = args[:polyline_config] if args.key?(:polyline_config)
  @segmentation_config = args[:segmentation_config] if args.key?(:segmentation_config)
end