
com.tencentcloudapi.iai.v20180301.models.DetectLiveFaceResponse Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.iai.v20180301.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DetectLiveFaceResponse extends AbstractModel{
/**
* 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内,0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
*/
@SerializedName("Score")
@Expose
private Float Score;
/**
* 人脸识别所用的算法模型版本。
*/
@SerializedName("FaceModelVersion")
@Expose
private String FaceModelVersion;
/**
* 活体检测是否通过。
本字段只有FaceModelVersion为3.0时才具备参考意义。
*/
@SerializedName("IsLiveness")
@Expose
private Boolean IsLiveness;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内,0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
* @return Score 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内,0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
*/
public Float getScore() {
return this.Score;
}
/**
* Set 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内,0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
* @param Score 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内,0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
*/
public void setScore(Float Score) {
this.Score = Score;
}
/**
* Get 人脸识别所用的算法模型版本。
* @return FaceModelVersion 人脸识别所用的算法模型版本。
*/
public String getFaceModelVersion() {
return this.FaceModelVersion;
}
/**
* Set 人脸识别所用的算法模型版本。
* @param FaceModelVersion 人脸识别所用的算法模型版本。
*/
public void setFaceModelVersion(String FaceModelVersion) {
this.FaceModelVersion = FaceModelVersion;
}
/**
* Get 活体检测是否通过。
本字段只有FaceModelVersion为3.0时才具备参考意义。
* @return IsLiveness 活体检测是否通过。
本字段只有FaceModelVersion为3.0时才具备参考意义。
*/
public Boolean getIsLiveness() {
return this.IsLiveness;
}
/**
* Set 活体检测是否通过。
本字段只有FaceModelVersion为3.0时才具备参考意义。
* @param IsLiveness 活体检测是否通过。
本字段只有FaceModelVersion为3.0时才具备参考意义。
*/
public void setIsLiveness(Boolean IsLiveness) {
this.IsLiveness = IsLiveness;
}
/**
* Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @return RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @param RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Score", this.Score);
this.setParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.setParamSimple(map, prefix + "IsLiveness", this.IsLiveness);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy