public class CompareFaceLivenessRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CompareFaceLivenessRequest() |
CompareFaceLivenessRequest(CompareFaceLivenessRequest 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 value of photos used for face comparison.
|
String |
getLivenessType()
Get The liveness detection type.
|
String |
getValidateData()
Get When the “LivenessType” parameter is “ACTION”, it must be specified.
|
String |
getVideoBase64()
Get Base64 value of photos used for face comparison.
|
void |
setImageBase64(String ImageBase64)
Set Base64 value of photos used for face comparison.
|
void |
setLivenessType(String LivenessType)
Set The liveness detection type.
|
void |
setValidateData(String ValidateData)
Set When the “LivenessType” parameter is “ACTION”, it must be specified.
|
void |
setVideoBase64(String VideoBase64)
Set Base64 value of photos used for face comparison.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CompareFaceLivenessRequest()
public CompareFaceLivenessRequest(CompareFaceLivenessRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
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 getVideoBase64()
public void setVideoBase64(String VideoBase64)
VideoBase64
- 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 getLivenessType()
public void setLivenessType(String LivenessType)
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 getValidateData()
public void setValidateData(String ValidateData)
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: ""Copyright © 2023. All rights reserved.