public class DetectLiveFaceResponse extends AbstractModel
Constructor and Description |
---|
DetectLiveFaceResponse() |
DetectLiveFaceResponse(DetectLiveFaceResponse 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 |
getFaceModelVersion()
Get Algorithm model version used for face recognition.
|
Boolean |
getIsLiveness()
Get Whether liveness detection is passed.
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
Float |
getScore()
Get Liveness score.
|
void |
setFaceModelVersion(String FaceModelVersion)
Set Algorithm model version used for face recognition.
|
void |
setIsLiveness(Boolean IsLiveness)
Set Whether liveness detection is passed.
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
setScore(Float Score)
Set Liveness score.
|
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 DetectLiveFaceResponse()
public DetectLiveFaceResponse(DetectLiveFaceResponse source)
public Float getScore()
public void setScore(Float Score)
Score
- Liveness score. Value range: [0,100]. The score is generally between 80 and 100, but 0 is also a common value. As a recommendation, when the score is greater than 87, it can be judged that the person in the image is alive. You can adjust the threshold according to your specific scenario.
This field is meaningful only if `FaceModelVersion` is 2.0.public String getFaceModelVersion()
public void setFaceModelVersion(String FaceModelVersion)
FaceModelVersion
- Algorithm model version used for face recognition.public Boolean getIsLiveness()
public void setIsLiveness(Boolean IsLiveness)
IsLiveness
- Whether liveness detection is passed.
This field is meaningful only if `FaceModelVersion` is 3.0.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2023. All rights reserved.