Class: TencentCloud::Ims::V20200713::RecognitionResult

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200713/models.rb

Overview

识别类型标签结果信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label = nil, tags = nil) ⇒ RecognitionResult

Returns a new instance of RecognitionResult.



643
644
645
646
# File 'lib/v20200713/models.rb', line 643

def initialize(label=nil, tags=nil)
  @Label = label
  @Tags = tags
end

Instance Attribute Details

#LabelObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Label:

    当前可能的取值:Scene(图片场景模型)

  • Tags:

    Label对应模型下的识别标签信息



641
642
643
# File 'lib/v20200713/models.rb', line 641

def Label
  @Label
end

#TagsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Label:

    当前可能的取值:Scene(图片场景模型)

  • Tags:

    Label对应模型下的识别标签信息



641
642
643
# File 'lib/v20200713/models.rb', line 641

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



648
649
650
651
652
653
654
655
656
657
658
# File 'lib/v20200713/models.rb', line 648

def deserialize(params)
  @Label = params['Label']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      recognitiontag_tmp = RecognitionTag.new
      recognitiontag_tmp.deserialize(i)
      @Tags << recognitiontag_tmp
    end
  end
end