Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb
Overview
Image bounding poly annotation. It represents a polygon including bounding box in the image.
Instance Attribute Summary collapse
-
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used in a labeling task.
-
#bounding_poly ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BoundingPoly
A bounding polygon in the image.
-
#normalized_bounding_poly ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly
Normalized bounding polygon.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
constructor
A new instance of GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
Returns a new instance of GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation.
2549 2550 2551 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used
in a labeling task. For example, an image classification task where images are
labeled as dog or cat must reference an AnnotationSpec for dog and an
AnnotationSpec for cat.
Corresponds to the JSON property annotationSpec
2537 2538 2539 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2537 def annotation_spec @annotation_spec end |
#bounding_poly ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BoundingPoly
A bounding polygon in the image.
Corresponds to the JSON property boundingPoly
2542 2543 2544 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2542 def bounding_poly @bounding_poly end |
#normalized_bounding_poly ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly
Normalized bounding polygon.
Corresponds to the JSON property normalizedBoundingPoly
2547 2548 2549 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2547 def normalized_bounding_poly @normalized_bounding_poly end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2554 2555 2556 2557 2558 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2554 def update!(**args) @annotation_spec = args[:annotation_spec] if args.key?(:annotation_spec) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) @normalized_bounding_poly = args[:normalized_bounding_poly] if args.key?(:normalized_bounding_poly) end |