class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation

Image segmentation annotation.

Attributes

annotation_colors[RW]

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` @return [Hash<String,Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec>]

image_bytes[RW]

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. @return [String]

mime_type[RW]

Image format. Corresponds to the JSON property `mimeType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 2709
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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