Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation
- 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
-
#mask_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationMaskAnnotation
The mask based segmentation annotation.
-
#polygon_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolygonAnnotation
Represents a polygon in image.
-
#polyline_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolylineAnnotation
Represents a polyline in image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation
constructor
A new instance of GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation
Returns a new instance of GoogleCloudAiplatformV1SchemaImageSegmentationAnnotation.
16177 16178 16179 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16177 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mask_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationMaskAnnotation
The mask based segmentation annotation.
Corresponds to the JSON property maskAnnotation
16165 16166 16167 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16165 def mask_annotation @mask_annotation end |
#polygon_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolygonAnnotation
Represents a polygon in image.
Corresponds to the JSON property polygonAnnotation
16170 16171 16172 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16170 def polygon_annotation @polygon_annotation end |
#polyline_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolylineAnnotation
Represents a polyline in image.
Corresponds to the JSON property polylineAnnotation
16175 16176 16177 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16175 def polyline_annotation @polyline_annotation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16182 16183 16184 16185 16186 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16182 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 |