Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox

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

An integer bounding box of original pixels of the image for the detected labels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox

Returns a new instance of CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox.



678
679
680
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 678

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

Instance Attribute Details

#x1Fixnum

The X coordinate of the top-left corner, in pixels. Corresponds to the JSON property x1

Returns:

  • (Fixnum)


661
662
663
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 661

def x1
  @x1
end

#x2Fixnum

The X coordinate of the bottom-right corner, in pixels. Corresponds to the JSON property x2

Returns:

  • (Fixnum)


666
667
668
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 666

def x2
  @x2
end

#y1Fixnum

The Y coordinate of the top-left corner, in pixels. Corresponds to the JSON property y1

Returns:

  • (Fixnum)


671
672
673
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 671

def y1
  @y1
end

#y2Fixnum

The Y coordinate of the bottom-right corner, in pixels. Corresponds to the JSON property y2

Returns:

  • (Fixnum)


676
677
678
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 676

def y2
  @y2
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



683
684
685
686
687
688
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 683

def update!(**args)
  @x1 = args[:x1] if args.key?(:x1)
  @x2 = args[:x2] if args.key?(:x2)
  @y1 = args[:y1] if args.key?(:y1)
  @y2 = args[:y2] if args.key?(:y2)
end