Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BoundingPoly

Inherits:
Object
  • Object
show all
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

A bounding polygon in the image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1BoundingPoly

Returns a new instance of GoogleCloudDatalabelingV1beta1BoundingPoly.



1234
1235
1236
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1234

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#verticesArray<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Vertex>

The bounding polygon vertices. Corresponds to the JSON property vertices



1232
1233
1234
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1232

def vertices
  @vertices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1239
1240
1241
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1239

def update!(**args)
  @vertices = args[:vertices] if args.key?(:vertices)
end