class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation

Image bounding poly annotation. It represents a polygon including bounding box in the image.

Attributes

annotation_spec[RW]

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` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec]

bounding_poly[RW]

A bounding polygon in the image. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BoundingPoly]

normalized_bounding_poly[RW]

Normalized bounding polygon. Corresponds to the JSON property `normalizedBoundingPoly` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 2549
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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