AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation (v0.6.0)

Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation.

Image segmentation annotation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#annotation_colors

def annotation_colors() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec}) — 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.

#annotation_colors=

def annotation_colors=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec}) — 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.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec}) — 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.

#image_bytes

def image_bytes() -> ::String
Returns
  • (::String) — A byte string of a full image's color map.

#image_bytes=

def image_bytes=(value) -> ::String
Parameter
  • value (::String) — A byte string of a full image's color map.
Returns
  • (::String) — A byte string of a full image's color map.

#mime_type

def mime_type() -> ::String
Returns
  • (::String) — Image format.

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) — Image format.
Returns
  • (::String) — Image format.