Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Annotation details specific to image segmentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation.



17382
17383
17384
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17382

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

Instance Attribute Details

#mask_annotationGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation

The mask based segmentation annotation. Corresponds to the JSON property maskAnnotation



17370
17371
17372
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17370

def mask_annotation
  @mask_annotation
end

#polygon_annotationGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationPolygonAnnotation

Represents a polygon in image. Corresponds to the JSON property polygonAnnotation



17375
17376
17377
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17375

def polygon_annotation
  @polygon_annotation
end

#polyline_annotationGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationPolylineAnnotation

Represents a polyline in image. Corresponds to the JSON property polylineAnnotation



17380
17381
17382
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17380

def polyline_annotation
  @polyline_annotation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17387
17388
17389
17390
17391
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17387

def update!(**args)
  @mask_annotation = args[:mask_annotation] if args.key?(:mask_annotation)
  @polygon_annotation = args[:polygon_annotation] if args.key?(:polygon_annotation)
  @polyline_annotation = args[:polyline_annotation] if args.key?(:polyline_annotation)
end