public class LivenessCompareRequest extends AbstractModel
Constructor and Description |
---|
LivenessCompareRequest() |
LivenessCompareRequest(LivenessCompareRequest 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 |
getImageBase64()
Get Base64 string of the image for face comparison.
|
String |
getLivenessType()
Get Liveness detection type.
|
String |
getOptional()
Get This parameter does not need to be passed in for this API.
|
String |
getValidateData()
Get Input parameter for the numeric mode: numeric verification code (1234).
|
String |
getVideoBase64()
Get Base64 string of the video for liveness detection.
|
void |
setImageBase64(String ImageBase64)
Set Base64 string of the image for face comparison.
|
void |
setLivenessType(String LivenessType)
Set Liveness detection type.
|
void |
setOptional(String Optional)
Set This parameter does not need to be passed in for this API.
|
void |
setValidateData(String ValidateData)
Set Input parameter for the numeric mode: numeric verification code (1234).
|
void |
setVideoBase64(String VideoBase64)
Set Base64 string of the video for liveness detection.
|
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 LivenessCompareRequest()
public LivenessCompareRequest(LivenessCompareRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- Base64 string of the image for face comparison.
The size of the Base64-encoded image data can be up to 3 MB. JPG and PNG formats are supported.
Please use the standard Base64 encoding scheme (with the "=" padding). For the encoding conventions, please see RFC 4648.public String getVideoBase64()
public void setVideoBase64(String VideoBase64)
VideoBase64
- Base64 string of the video for liveness detection.
The size of the Base64-encoded video data can be up to 8 MB. MP4, AVI, and FLV formats are supported.
Please use the standard Base64 encoding scheme (with the "=" padding). For the encoding conventions, please see RFC 4648.public String getLivenessType()
public void setLivenessType(String LivenessType)
LivenessType
- Liveness detection type. Valid values: LIP/ACTION/SILENT.
LIP: numeric mode; ACTION: motion mode; SILENT: silent mode. You need to select a mode to input.public String getValidateData()
public void setValidateData(String ValidateData)
ValidateData
- Input parameter for the numeric mode: numeric verification code (1234). An API needs to be called first to get a numeric verification code;
Input parameter for the motion mode: motion order (2,1 or 1,2). An API needs to be called first to get the motion order;
Input parameter for silent mode: empty.public String getOptional()
public void setOptional(String Optional)
Optional
- This parameter does not need to be passed in for this API.Copyright © 2021. All rights reserved.