Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity

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

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.



395
396
397
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 395

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

Instance Attribute Details

#bounding_boxGoogle::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

#descriptionString

Description of the label Corresponds to the JSON property description

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 378

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)


383
384
385
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 383

def iou_score
  @iou_score
end

#midString

MID of the label Corresponds to the JSON property mid

Returns:

  • (String)


388
389
390
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 388

def mid
  @mid
end

#scoreFloat

Confidence score of the label Corresponds to the JSON property score

Returns:

  • (Float)


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