public class Candidate extends AbstractModel
Constructor and Description |
---|
Candidate() |
Candidate(Candidate source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getFaceId()
Get Face ID, which is valid only when returned by the `SearchFaces` or `SearchFacesReturnsByGroup` API.
|
Long |
getGender()
Get Person gender
Note: this field may return null, indicating that no valid values can be obtained.
|
PersonGroupInfo[] |
getPersonGroupInfos()
Get List of groups containing this person and their description fields
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getPersonId()
Get Person ID
|
String |
getPersonName()
Get Person name
Note: this field may return null, indicating that no valid values can be obtained.
|
Float |
getScore()
Get Match score of candidate.
|
void |
setFaceId(String FaceId)
Set Face ID, which is valid only when returned by the `SearchFaces` or `SearchFacesReturnsByGroup` API.
|
void |
setGender(Long Gender)
Set Person gender
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setPersonGroupInfos(PersonGroupInfo[] PersonGroupInfos)
Set List of groups containing this person and their description fields
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setPersonId(String PersonId)
Set Person ID
|
void |
setPersonName(String PersonName)
Set Person name
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setScore(Float Score)
Set Match score of candidate.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Candidate()
public Candidate(Candidate source)
public String getPersonId()
public void setPersonId(String PersonId)
PersonId
- Person IDpublic String getFaceId()
public void setFaceId(String FaceId)
FaceId
- Face ID, which is valid only when returned by the `SearchFaces` or `SearchFacesReturnsByGroup` API. User search APIs use facial feature fusion to search for users, for which this field is meaningless.public Float getScore()
public void setScore(Float Score)
Score
- Match score of candidate.
In a face base library containing 10,000 faces, the 1%, 0.1%, and 0.01% FARs correspond to scores of 70, 80, and 90, respectively;
In a face base library containing 100,000 faces, the 1%, 0.1%, and 0.01% FARs correspond to scores of 80, 90, and 100, respectively;
In a face base library containing 300,000 faces, the 1% and 0.1% FARs correspond to scores of 85 and 95, respectively.
Generally, the score of 80 is suitable for most scenarios. We recommend choosing an appropriate score based on the actual situation, preferably no more than 90.public String getPersonName()
public void setPersonName(String PersonName)
PersonName
- Person name
Note: this field may return null, indicating that no valid values can be obtained.public Long getGender()
public void setGender(Long Gender)
Gender
- Person gender
Note: this field may return null, indicating that no valid values can be obtained.public PersonGroupInfo[] getPersonGroupInfos()
public void setPersonGroupInfos(PersonGroupInfo[] PersonGroupInfos)
PersonGroupInfos
- List of groups containing this person and their description fields
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.