public class VerifyPersonRequest extends AbstractModel
Constructor and Description |
---|
VerifyPersonRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getImage()
Get Base64-encoded data of image.
|
Long |
getNeedRotateDetection()
Get Whether to enable the support for rotated image recognition.
|
String |
getPersonId()
Get ID of the person to be verified.
|
Long |
getQualityControl()
Get Image quality control.
|
String |
getUrl()
Get Image URL
The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats.
|
void |
setImage(String Image)
Set Base64-encoded data of image.
|
void |
setNeedRotateDetection(Long NeedRotateDetection)
Set Whether to enable the support for rotated image recognition.
|
void |
setPersonId(String PersonId)
Set ID of the person to be verified.
|
void |
setQualityControl(Long QualityControl)
Set Image quality control.
|
void |
setUrl(String Url)
Set Image URL
The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats.
|
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 String getImage()
public void setImage(String Image)
Image
- Base64-encoded data of image.
The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats.
If there are multiple faces in the image, only the face with the largest size will be selected.
.png, .jpg, .jpeg, and .bmp images are supported, while .gif images are not.public String getUrl()
public void setUrl(String Url)
Url
- Image URL
The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats.
Either `Url` or `Image` of the image must be provided; if both are provided, only `Url` will be used.
You are recommended to store the image in Tencent Cloud, as a Tencent Cloud URL can guarantee higher download speed and stability.
The download speed and stability of non-Tencent Cloud URLs may be low.
If there are multiple faces in the image, only the face with the largest size will be selected.
.png, .jpg, .jpeg, and .bmp images are supported, while .gif images are not.public String getPersonId()
public void setPersonId(String PersonId)
PersonId
- ID of the person to be verified. For more information on `PersonId`, please see the group management APIs.public Long getQualityControl()
public void setQualityControl(Long QualityControl)
QualityControl
- Image quality control.
0: no control.
1: low quality requirement. The image has one or more of the following problems: extreme blurriness, covered eyes, covered nose, and covered mouth.
2: average quality requirement. The image has at least three of following problems: extreme brightness, extreme dimness, blurriness or average blurriness, covered eyebrows, covered cheeks, and covered chin.
3: high quality requirement. The image has one to two of following problems: extreme brightness, extreme dimness, average blurriness, covered eyebrows, covered cheeks, and covered chin.
4: very high quality requirement. The image is optimal in all dimensions or only has a slight problem in one dimension.
Default value: 0.
If the image quality does not meet the requirement, the returned result will prompt that the detected image quality is unsatisfactory.public Long getNeedRotateDetection()
public void setNeedRotateDetection(Long NeedRotateDetection)
NeedRotateDetection
- Whether to enable the support for rotated image recognition. 0: no; 1: yes. Default value: 0. When the face in the image is rotated and the image has no EXIF information, if this parameter is not enabled, the face in the image cannot be correctly detected and recognized. If you are sure that the input image contains EXIF information or the face in the image will not be rotated, do not enable this parameter, as the overall time consumption may increase by hundreds of milliseconds after it is enabled.Copyright © 2020. All rights reserved.