Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation
- 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
-
#mask_annotation ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation
The mask based segmentation annotation.
-
#polygon_annotation ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationPolygonAnnotation
Represents a polygon in image.
-
#polyline_annotation ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationPolylineAnnotation
Represents a polyline in image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotation.
53200 53201 53202 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mask_annotation ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation
The mask based segmentation annotation.
Corresponds to the JSON property maskAnnotation
53188 53189 53190 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53188 def mask_annotation @mask_annotation end |
#polygon_annotation ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationPolygonAnnotation
Represents a polygon in image.
Corresponds to the JSON property polygonAnnotation
53193 53194 53195 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53193 def polygon_annotation @polygon_annotation end |
#polyline_annotation ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationPolylineAnnotation
Represents a polyline in image.
Corresponds to the JSON property polylineAnnotation
53198 53199 53200 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53198 def polyline_annotation @polyline_annotation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
53205 53206 53207 53208 53209 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53205 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 |