Class: TencentCloud::Vm::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.



1128
1129
1130
1131
# File 'lib/v20201229/models.rb', line 1128

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

Instance Attribute Details

#LabelObject

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

Parameters:

  • Label:

    可能的取值有:Teenager 、Gender

  • Tags:

    识别标签列表



1126
1127
1128
# File 'lib/v20201229/models.rb', line 1126

def Label
  @Label
end

#TagsObject

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

Parameters:

  • Label:

    可能的取值有:Teenager 、Gender

  • Tags:

    识别标签列表



1126
1127
1128
# File 'lib/v20201229/models.rb', line 1126

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
# File 'lib/v20201229/models.rb', line 1133

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