Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity

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

Instance Method Summary collapse

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_boxGoogle::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

#descriptionString

Description of the label Corresponds to the JSON property description

Returns:

  • (String)


327
328
329
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 327

def description
  @description
end

#iou_scoreFloat

The intersection ratio between the detection bounding box and the mask. Corresponds to the JSON property iouScore

Returns:

  • (Float)


332
333
334
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 332

def iou_score
  @iou_score
end

#midString

MID of the label Corresponds to the JSON property mid

Returns:

  • (String)


337
338
339
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 337

def mid
  @mid
end

#scoreFloat

Confidence score of the label Corresponds to the JSON property score

Returns:

  • (Float)


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