public class VideoLivenessCompareRequest extends AbstractModel
skipSign
Constructor and Description |
---|
VideoLivenessCompareRequest() |
VideoLivenessCompareRequest(VideoLivenessCompareRequest 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 |
getImageMd5()
Get The 32-bit MD5 checksum of the image for comparison
|
String |
getImageUrl()
Get The URL of the photo for face comparison.
|
String |
getLivenessType()
Get The liveness detection type.
|
String |
getValidateData()
Get LIP parameter: Pass in a custom 4-digit verification code.
|
String |
getVideoMd5()
Get The 32-bit MD5 checksum of the video
|
String |
getVideoUrl()
Get The URL of the video for liveness detection.
|
void |
setImageMd5(String ImageMd5)
Set The 32-bit MD5 checksum of the image for comparison
|
void |
setImageUrl(String ImageUrl)
Set The URL of the photo for face comparison.
|
void |
setLivenessType(String LivenessType)
Set The liveness detection type.
|
void |
setValidateData(String ValidateData)
Set LIP parameter: Pass in a custom 4-digit verification code.
|
void |
setVideoMd5(String VideoMd5)
Set The 32-bit MD5 checksum of the video
|
void |
setVideoUrl(String VideoUrl)
Set The URL 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, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public VideoLivenessCompareRequest()
public VideoLivenessCompareRequest(VideoLivenessCompareRequest source)
public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl
- The URL of the photo for face comparison. The downloaded image after Base64 encoding can be up to 3 MB and must be in JPG or PNG.
The image must be stored in a COS bucket in the region where the FaceID service resides to ensure a higher download speed and better stability. You can generate an image URL by using `CreateUploadUrl` or purchase the COS service.public String getImageMd5()
public void setImageMd5(String ImageMd5)
ImageMd5
- The 32-bit MD5 checksum of the image for comparisonpublic String getVideoUrl()
public void setVideoUrl(String VideoUrl)
VideoUrl
- The URL of the video for liveness detection. The downloaded video after Base64 encoding can be up to 8 MB and must be in MP4, AVI, or FLV. It takes no more than 4s to download the video.
The video must be stored in a COS bucket in the region where the FaceID service resides to ensure a higher download speed and better stability. You can generate a video URL by using `CreateUploadUrl` or purchase the COS service.public String getVideoMd5()
public void setVideoMd5(String VideoMd5)
VideoMd5
- The 32-bit MD5 checksum of the videopublic 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.public String getValidateData()
public void setValidateData(String ValidateData)
ValidateData
- LIP parameter: Pass in a custom 4-digit verification code.
ACTION parameter: Pass in a custom action sequence (`2,1` or `1,2`).
SILENT parameter: Null.Copyright © 2023. All rights reserved.