Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaImageBoundingBoxAnnotation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaImageBoundingBoxAnnotation

Returns a new instance of GoogleCloudAiplatformV1SchemaImageBoundingBoxAnnotation.



38442
38443
38444
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38442

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

Instance Attribute Details

#annotation_spec_idString

The resource Id of the AnnotationSpec that this Annotation pertains to. Corresponds to the JSON property annotationSpecId

Returns:

  • (String)


38415
38416
38417
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38415

def annotation_spec_id
  @annotation_spec_id
end

#display_nameString

The display name of the AnnotationSpec that this Annotation pertains to. Corresponds to the JSON property displayName

Returns:

  • (String)


38420
38421
38422
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38420

def display_name
  @display_name
end

#x_maxFloat

The rightmost coordinate of the bounding box. Corresponds to the JSON property xMax

Returns:

  • (Float)


38425
38426
38427
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38425

def x_max
  @x_max
end

#x_minFloat

The leftmost coordinate of the bounding box. Corresponds to the JSON property xMin

Returns:

  • (Float)


38430
38431
38432
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38430

def x_min
  @x_min
end

#y_maxFloat

The bottommost coordinate of the bounding box. Corresponds to the JSON property yMax

Returns:

  • (Float)


38435
38436
38437
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38435

def y_max
  @y_max
end

#y_minFloat

The topmost coordinate of the bounding box. Corresponds to the JSON property yMin

Returns:

  • (Float)


38440
38441
38442
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38440

def y_min
  @y_min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38447
38448
38449
38450
38451
38452
38453
38454
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 38447

def update!(**args)
  @annotation_spec_id = args[:annotation_spec_id] if args.key?(:annotation_spec_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @x_max = args[:x_max] if args.key?(:x_max)
  @x_min = args[:x_min] if args.key?(:x_min)
  @y_max = args[:y_max] if args.key?(:y_max)
  @y_min = args[:y_min] if args.key?(:y_min)
end