Class: TencentCloud::Ams::V20201229::RecognitionResult

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201229/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.



1050
1051
1052
1053
# File 'lib/v20201229/models.rb', line 1050

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

Instance Attribute Details

#LabelObject

Parameters:

  • Label:

    可能的取值有:Teenager 、Gender

  • Tags:

    识别标签列表



1048
1049
1050
# File 'lib/v20201229/models.rb', line 1048

def Label
  @Label
end

#TagsObject

Parameters:

  • Label:

    可能的取值有:Teenager 、Gender

  • Tags:

    识别标签列表



1048
1049
1050
# File 'lib/v20201229/models.rb', line 1048

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
# File 'lib/v20201229/models.rb', line 1055

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