Class: TencentCloud::Iai::V20180301::Candidate

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

Overview

识别出的最相似候选人

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(personid = nil, faceid = nil, score = nil, personname = nil, gender = nil, persongroupinfos = nil) ⇒ Candidate

Returns a new instance of Candidate.



244
245
246
247
248
249
250
251
# File 'lib/v20180301/models.rb', line 244

def initialize(personid=nil, faceid=nil, score=nil, personname=nil, gender=nil, persongroupinfos=nil)
  @PersonId = personid
  @FaceId = faceid
  @Score = score
  @PersonName = personname
  @Gender = gender
  @PersonGroupInfos = persongroupinfos
end

Instance Attribute Details

#FaceIdObject

一般80分左右可适用大部分场景,建议分数不要超过90分。您可以根据实际情况选择合适的分数。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PersonName:

    人员名称

  • Gender:

    人员性别

  • PersonGroupInfos:

    包含此人员的人员库及描述字段内容列表



242
243
244
# File 'lib/v20180301/models.rb', line 242

def FaceId
  @FaceId
end

#GenderObject

一般80分左右可适用大部分场景,建议分数不要超过90分。您可以根据实际情况选择合适的分数。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PersonName:

    人员名称

  • Gender:

    人员性别

  • PersonGroupInfos:

    包含此人员的人员库及描述字段内容列表



242
243
244
# File 'lib/v20180301/models.rb', line 242

def Gender
  @Gender
end

#PersonGroupInfosObject

一般80分左右可适用大部分场景,建议分数不要超过90分。您可以根据实际情况选择合适的分数。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PersonName:

    人员名称

  • Gender:

    人员性别

  • PersonGroupInfos:

    包含此人员的人员库及描述字段内容列表



242
243
244
# File 'lib/v20180301/models.rb', line 242

def PersonGroupInfos
  @PersonGroupInfos
end

#PersonIdObject

一般80分左右可适用大部分场景,建议分数不要超过90分。您可以根据实际情况选择合适的分数。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PersonName:

    人员名称

  • Gender:

    人员性别

  • PersonGroupInfos:

    包含此人员的人员库及描述字段内容列表



242
243
244
# File 'lib/v20180301/models.rb', line 242

def PersonId
  @PersonId
end

#PersonNameObject

一般80分左右可适用大部分场景,建议分数不要超过90分。您可以根据实际情况选择合适的分数。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PersonName:

    人员名称

  • Gender:

    人员性别

  • PersonGroupInfos:

    包含此人员的人员库及描述字段内容列表



242
243
244
# File 'lib/v20180301/models.rb', line 242

def PersonName
  @PersonName
end

#ScoreObject

一般80分左右可适用大部分场景,建议分数不要超过90分。您可以根据实际情况选择合适的分数。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PersonName:

    人员名称

  • Gender:

    人员性别

  • PersonGroupInfos:

    包含此人员的人员库及描述字段内容列表



242
243
244
# File 'lib/v20180301/models.rb', line 242

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# File 'lib/v20180301/models.rb', line 253

def deserialize(params)
  @PersonId = params['PersonId']
  @FaceId = params['FaceId']
  @Score = params['Score']
  @PersonName = params['PersonName']
  @Gender = params['Gender']
  unless params['PersonGroupInfos'].nil?
    @PersonGroupInfos = []
    params['PersonGroupInfos'].each do |i|
      persongroupinfo_tmp = PersonGroupInfo.new
      persongroupinfo_tmp.deserialize(i)
      @PersonGroupInfos << persongroupinfo_tmp
    end
  end
end