Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
The properties for a detected entity from the rai signal.
Instance Attribute Summary collapse
-
#bounding_box ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
An integer bounding box of original pixels of the image for the detected labels.
-
#description ⇒ String
Description of the label Corresponds to the JSON property
description
. -
#iou_score ⇒ Float
The intersection ratio between the detection bounding box and the mask.
-
#mid ⇒ String
MID of the label Corresponds to the JSON property
mid
. -
#score ⇒ Float
Confidence score of the label Corresponds to the JSON property
score
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
constructor
A new instance of CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
Returns a new instance of CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity.
344 345 346 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 344 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bounding_box ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
An integer bounding box of original pixels of the image for the detected
labels.
Corresponds to the JSON property boundingBox
322 323 324 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 322 def bounding_box @bounding_box end |
#description ⇒ String
Description of the label
Corresponds to the JSON property description
327 328 329 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 327 def description @description end |
#iou_score ⇒ Float
The intersection ratio between the detection bounding box and the mask.
Corresponds to the JSON property iouScore
332 333 334 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 332 def iou_score @iou_score end |
#mid ⇒ String
MID of the label
Corresponds to the JSON property mid
337 338 339 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 337 def mid @mid end |
#score ⇒ Float
Confidence score of the label
Corresponds to the JSON property score
342 343 344 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 342 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
349 350 351 352 353 354 355 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 349 def update!(**args) @bounding_box = args[:bounding_box] if args.key?(:bounding_box) @description = args[:description] if args.key?(:description) @iou_score = args[:iou_score] if args.key?(:iou_score) @mid = args[:mid] if args.key?(:mid) @score = args[:score] if args.key?(:score) end |