Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation

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

Image segmentation annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation

Returns a new instance of GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation.



2709
2710
2711
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2709

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

Instance Attribute Details

#annotation_colorsHash<String,Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec>

The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec. Corresponds to the JSON property annotationColors



2696
2697
2698
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2696

def annotation_colors
  @annotation_colors
end

#image_bytesString

A byte string of a full image's color map. Corresponds to the JSON property imageBytes NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2702
2703
2704
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2702

def image_bytes
  @image_bytes
end

#mime_typeString

Image format. Corresponds to the JSON property mimeType

Returns:

  • (String)


2707
2708
2709
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2707

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2714
2715
2716
2717
2718
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2714

def update!(**args)
  @annotation_colors = args[:annotation_colors] if args.key?(:annotation_colors)
  @image_bytes = args[:image_bytes] if args.key?(:image_bytes)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end