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.
15089 15090 15091 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15089 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
15077 15078 15079 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15077 def mask_annotation @mask_annotation end |
#polygon_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolygonAnnotation
Represents a polygon in image.
Corresponds to the JSON property polygonAnnotation
15082 15083 15084 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15082 def polygon_annotation @polygon_annotation end |
#polyline_annotation ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageSegmentationAnnotationPolylineAnnotation
Represents a polyline in image.
Corresponds to the JSON property polylineAnnotation
15087 15088 15089 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15087 def polyline_annotation @polyline_annotation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15094 15095 15096 15097 15098 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15094 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 |