public class CompareFaceVerifyRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
crop
Whether cropping is allowed.
|
String |
outerOrderNo
A unique identifier for the merchant\"s request.
|
String |
productCode
Fixed value: PV_FC.
|
Long |
sceneId
Authentication scenario ID.
|
String |
sourceCertifyId
The CertifyId of a previously successful real-person verification, where the photo taken during that verification is used as the face comparison photo.
|
String |
sourceFaceContrastPicture
Base64 encoding of the photo.
|
String |
sourceFaceContrastPictureUrl
OSS photo URL, currently only supports authorized OSS photo URLs.
|
String |
sourceOssBucketName
Name of the authorized OSS bucket.
|
String |
sourceOssObjectName
Filename of the authorized OSS space.
|
String |
targetCertifyId
CertifyId from a previously successful real-person authentication, where the photo taken during the authentication is used for face comparison.
|
String |
targetFaceContrastPicture
Base64 encoding of the reference photo.
|
String |
targetFaceContrastPictureUrl
OSS address of the reference photo.
|
String |
targetOssBucketName
Name of the authorized OSS bucket.
|
String |
targetOssObjectName
File name in the authorized OSS space.
|
| 构造器和说明 |
|---|
CompareFaceVerifyRequest() |
@NameInMap(value="Crop") public String crop
Whether cropping is allowed. Default is not allowed, T/F.
T
@NameInMap(value="OuterOrderNo") public String outerOrderNo
A unique identifier for the merchant\"s request. The value is a 32-character alphanumeric combination, where the first few characters are a custom abbreviation defined by the merchant, followed by a period, and the latter part can be a random or incrementing sequence.
example:e0c34a77f5ac40a5aa5e6ed20c353888
@NameInMap(value="ProductCode") public String productCode
Fixed value: PV_FC.
example:PV_FC
@NameInMap(value="SceneId") public Long sceneId
Authentication scenario ID.
example:1000000006
@NameInMap(value="SourceCertifyId") public String sourceCertifyId
The CertifyId of a previously successful real-person verification, where the photo taken during that verification is used as the face comparison photo.
example:Among the four ways to input facial photos (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to provide.
0bfa7c493f850e5178b9f8613634c9xx
@NameInMap(value="SourceFaceContrastPicture") public String sourceFaceContrastPicture
Base64 encoding of the photo.
example:Choose one of the four ways to input a face photo: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
/9j/4AAQSkZJRgABAQAASxxxxxxx
@NameInMap(value="SourceFaceContrastPictureUrl") public String sourceFaceContrastPictureUrl
OSS photo URL, currently only supports authorized OSS photo URLs.
example:Four ways to input face photos: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, and OSS. Choose one of them to input.
https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
@NameInMap(value="SourceOssBucketName") public String sourceOssBucketName
Name of the authorized OSS bucket.
example:Choose one of the four ways to input face photos: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
cn-shanghai-aliyun-cloudauth-xxxxx
@NameInMap(value="SourceOssObjectName") public String sourceOssObjectName
Filename of the authorized OSS space.
example:Choose one of the four ways to input face photos: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
verify/xxxxx/xxxxxx.jpeg
@NameInMap(value="TargetCertifyId") public String targetCertifyId
CertifyId from a previously successful real-person authentication, where the photo taken during the authentication is used for face comparison.
example:Choose one of the four methods to provide the reference face photo: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
0bfa7c493f850e5178b9f8613634c9xx
@NameInMap(value="TargetFaceContrastPicture") public String targetFaceContrastPicture
Base64 encoding of the reference photo.
example:Choose one of the four methods to provide the reference face photo: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
/9j/4AAQSkZJRgABAQAASxxxxxxx
@NameInMap(value="TargetFaceContrastPictureUrl") public String targetFaceContrastPictureUrl
OSS address of the reference photo. Currently, only authorized OSS addresses are supported.
example:Choose one of the four methods to provide the reference face photo: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
@NameInMap(value="TargetOssBucketName") public String targetOssBucketName
Name of the authorized OSS bucket.
example:Choose one of the four methods to provide the reference face photo: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
cn-shanghai-aliyun-cloudauth-xxxxx
@NameInMap(value="TargetOssObjectName") public String targetOssObjectName
File name in the authorized OSS space.
example:Choose one of the four methods to provide the reference face photo: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
verify/xxxxx/xxxxxx.jpeg
public static CompareFaceVerifyRequest build(Map<String,?> map) throws Exception
Exceptionpublic CompareFaceVerifyRequest setCrop(String crop)
public String getCrop()
public CompareFaceVerifyRequest setOuterOrderNo(String outerOrderNo)
public String getOuterOrderNo()
public CompareFaceVerifyRequest setProductCode(String productCode)
public String getProductCode()
public CompareFaceVerifyRequest setSceneId(Long sceneId)
public Long getSceneId()
public CompareFaceVerifyRequest setSourceCertifyId(String sourceCertifyId)
public String getSourceCertifyId()
public CompareFaceVerifyRequest setSourceFaceContrastPicture(String sourceFaceContrastPicture)
public String getSourceFaceContrastPicture()
public CompareFaceVerifyRequest setSourceFaceContrastPictureUrl(String sourceFaceContrastPictureUrl)
public String getSourceFaceContrastPictureUrl()
public CompareFaceVerifyRequest setSourceOssBucketName(String sourceOssBucketName)
public String getSourceOssBucketName()
public CompareFaceVerifyRequest setSourceOssObjectName(String sourceOssObjectName)
public String getSourceOssObjectName()
public CompareFaceVerifyRequest setTargetCertifyId(String targetCertifyId)
public String getTargetCertifyId()
public CompareFaceVerifyRequest setTargetFaceContrastPicture(String targetFaceContrastPicture)
public String getTargetFaceContrastPicture()
public CompareFaceVerifyRequest setTargetFaceContrastPictureUrl(String targetFaceContrastPictureUrl)
public String getTargetFaceContrastPictureUrl()
public CompareFaceVerifyRequest setTargetOssBucketName(String targetOssBucketName)
public String getTargetOssBucketName()
public CompareFaceVerifyRequest setTargetOssObjectName(String targetOssObjectName)
public String getTargetOssObjectName()
Copyright © 2025. All rights reserved.