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 string of the image for face comparison.
|
String |
getLivenessType()
Get Liveness detection type.
|
String |
getValidateData()
Get Control the action sequence.
|
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 |
setValidateData(String ValidateData)
Set Control the action sequence.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CompareFaceLivenessRequest()
public CompareFaceLivenessRequest(CompareFaceLivenessRequest 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 method (with = padding). Refer to RFC4648 for the encoding specification.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.
-Use standard Base64 encoding (with = padding), following RFC4648.public String getLivenessType()
public void setLivenessType(String LivenessType)
LivenessType - Liveness detection type.
-Values:
ACTION is action mode.
SILENT is silent mode.
-Choose one of the two modes to pass in.public String getValidateData()
public void setValidateData(String ValidateData)
ValidateData - Control the action sequence. Action types include: 1 (open mouth), 2 (blink), 3 (nod), 4 (shake head). Supports one or two actions.
-Required when the LivenessType parameter is set to ACTION.
-Single action example: "1".
-Multiple actions parameter passing example: "4,2".
-When the LivenessType parameter is set to SILENT, leave it blank.Copyright © 2025. All rights reserved.