Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
- 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
The properties for a detected entity from the rai signal.
Instance Attribute Summary collapse
-
#bounding_box ⇒ Google::Apis::AiplatformV1::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.
395 396 397 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 395 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bounding_box ⇒ Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
An integer bounding box of original pixels of the image for the detected
labels.
Corresponds to the JSON property boundingBox
373 374 375 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 373 def bounding_box @bounding_box end |
#description ⇒ String
Description of the label
Corresponds to the JSON property description
378 379 380 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 378 def description @description end |
#iou_score ⇒ Float
The intersection ratio between the detection bounding box and the mask.
Corresponds to the JSON property iouScore
383 384 385 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 383 def iou_score @iou_score end |
#mid ⇒ String
MID of the label
Corresponds to the JSON property mid
388 389 390 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 388 def mid @mid end |
#score ⇒ Float
Confidence score of the label
Corresponds to the JSON property score
393 394 395 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 393 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
400 401 402 403 404 405 406 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 400 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 |