![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.faceid.v20180301.models.CompareFaceLivenessRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.faceid.v20180301.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CompareFaceLivenessRequest extends AbstractModel {
/**
* Base64 value of photos used for face comparison.
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
*/
@SerializedName("ImageBase64")
@Expose
private String ImageBase64;
/**
* Base64 value of videos used for face comparison.
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
*/
@SerializedName("VideoBase64")
@Expose
private String VideoBase64;
/**
* The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
Example value: "SILENT"
*/
@SerializedName("LivenessType")
@Expose
private String LivenessType;
/**
* When the "LivenessType" parameter is "ACTION", it must be specified.
It is used to control the action sequence. Action types:
1 (open mouth)
2 (blink)
3 (nod)
4 (shake head).
Select one or two from the four actions.
Example of passing single action parameter: "1".
Example of passing multiple action parameters: "4,2".
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
Example value: ""
*/
@SerializedName("ValidateData")
@Expose
private String ValidateData;
/**
* Get Base64 value of photos used for face comparison.
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
* @return ImageBase64 Base64 value of photos used for face comparison.
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
*/
public String getImageBase64() {
return this.ImageBase64;
}
/**
* Set Base64 value of photos used for face comparison.
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
* @param ImageBase64 Base64 value of photos used for face comparison.
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
*/
public void setImageBase64(String ImageBase64) {
this.ImageBase64 = ImageBase64;
}
/**
* Get Base64 value of videos used for face comparison.
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
* @return VideoBase64 Base64 value of videos used for face comparison.
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
*/
public String getVideoBase64() {
return this.VideoBase64;
}
/**
* Set Base64 value of videos used for face comparison.
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
* @param VideoBase64 Base64 value of videos used for face comparison.
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
*/
public void setVideoBase64(String VideoBase64) {
this.VideoBase64 = VideoBase64;
}
/**
* Get The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
Example value: "SILENT"
* @return LivenessType The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
Example value: "SILENT"
*/
public String getLivenessType() {
return this.LivenessType;
}
/**
* Set The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
Example value: "SILENT"
* @param LivenessType The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
Example value: "SILENT"
*/
public void setLivenessType(String LivenessType) {
this.LivenessType = LivenessType;
}
/**
* Get When the "LivenessType" parameter is "ACTION", it must be specified.
It is used to control the action sequence. Action types:
1 (open mouth)
2 (blink)
3 (nod)
4 (shake head).
Select one or two from the four actions.
Example of passing single action parameter: "1".
Example of passing multiple action parameters: "4,2".
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
Example value: ""
* @return ValidateData When the "LivenessType" parameter is "ACTION", it must be specified.
It is used to control the action sequence. Action types:
1 (open mouth)
2 (blink)
3 (nod)
4 (shake head).
Select one or two from the four actions.
Example of passing single action parameter: "1".
Example of passing multiple action parameters: "4,2".
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
Example value: ""
*/
public String getValidateData() {
return this.ValidateData;
}
/**
* Set When the "LivenessType" parameter is "ACTION", it must be specified.
It is used to control the action sequence. Action types:
1 (open mouth)
2 (blink)
3 (nod)
4 (shake head).
Select one or two from the four actions.
Example of passing single action parameter: "1".
Example of passing multiple action parameters: "4,2".
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
Example value: ""
* @param ValidateData When the "LivenessType" parameter is "ACTION", it must be specified.
It is used to control the action sequence. Action types:
1 (open mouth)
2 (blink)
3 (nod)
4 (shake head).
Select one or two from the four actions.
Example of passing single action parameter: "1".
Example of passing multiple action parameters: "4,2".
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
Example value: ""
*/
public void setValidateData(String ValidateData) {
this.ValidateData = ValidateData;
}
public CompareFaceLivenessRequest() {
}
/**
* 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.
*/
public CompareFaceLivenessRequest(CompareFaceLivenessRequest source) {
if (source.ImageBase64 != null) {
this.ImageBase64 = new String(source.ImageBase64);
}
if (source.VideoBase64 != null) {
this.VideoBase64 = new String(source.VideoBase64);
}
if (source.LivenessType != null) {
this.LivenessType = new String(source.LivenessType);
}
if (source.ValidateData != null) {
this.ValidateData = new String(source.ValidateData);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ImageBase64", this.ImageBase64);
this.setParamSimple(map, prefix + "VideoBase64", this.VideoBase64);
this.setParamSimple(map, prefix + "LivenessType", this.LivenessType);
this.setParamSimple(map, prefix + "ValidateData", this.ValidateData);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy