Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
- 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
-
#x1 ⇒ Fixnum
The X coordinate of the top-left corner, in pixels.
-
#x2 ⇒ Fixnum
The X coordinate of the bottom-right corner, in pixels.
-
#y1 ⇒ Fixnum
The Y coordinate of the top-left corner, in pixels.
-
#y2 ⇒ Fixnum
The Y coordinate of the bottom-right corner, in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
constructor
A new instance of CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
Returns a new instance of CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox.
609 610 611 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 609 def initialize(**args) update!(**args) end |
Instance Attribute Details
#x1 ⇒ Fixnum
The X coordinate of the top-left corner, in pixels.
Corresponds to the JSON property x1
592 593 594 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 592 def x1 @x1 end |
#x2 ⇒ Fixnum
The X coordinate of the bottom-right corner, in pixels.
Corresponds to the JSON property x2
597 598 599 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 597 def x2 @x2 end |
#y1 ⇒ Fixnum
The Y coordinate of the top-left corner, in pixels.
Corresponds to the JSON property y1
602 603 604 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 602 def y1 @y1 end |
#y2 ⇒ Fixnum
The Y coordinate of the bottom-right corner, in pixels.
Corresponds to the JSON property y2
607 608 609 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 607 def y2 @y2 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
614 615 616 617 618 619 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 614 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 |