Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation

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

Overview

Annotation details specific to image segmentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation

Returns a new instance of GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation.



22991
22992
22993
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22991

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

Instance Attribute Details

#mask_annotationGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationMaskAnnotation

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



22979
22980
22981
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22979

def mask_annotation
  @mask_annotation
end

#polygon_annotationGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolygonAnnotation

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



22984
22985
22986
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22984

def polygon_annotation
  @polygon_annotation
end

#polyline_annotationGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolylineAnnotation

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



22989
22990
22991
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22989

def polyline_annotation
  @polyline_annotation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22996
22997
22998
22999
23000
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22996

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