public class IDCardOCRResponse extends AbstractModel
header, skipSign
Constructor and Description |
---|
IDCardOCRResponse() |
IDCardOCRResponse(IDCardOCRResponse 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 |
getAddress()
Get Address (profile photo side)
|
String |
getAdvancedInfo()
Get Extended information, which will be returned only when requested.
|
String |
getAuthority()
Get Issuing authority (national emblem side)
|
String |
getBirth()
Get Date of birth (profile photo side)
|
String |
getIdNum()
Get ID number (profile photo side)
|
String |
getName()
Get Name (profile photo side)
|
String |
getNation()
Get Ethnicity (profile photo side)
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
String |
getSex()
Get Gender (profile photo side)
|
String |
getValidDate()
Get Validity period (national emblem side)
|
void |
setAddress(String Address)
Set Address (profile photo side)
|
void |
setAdvancedInfo(String AdvancedInfo)
Set Extended information, which will be returned only when requested.
|
void |
setAuthority(String Authority)
Set Issuing authority (national emblem side)
|
void |
setBirth(String Birth)
Set Date of birth (profile photo side)
|
void |
setIdNum(String IdNum)
Set ID number (profile photo side)
|
void |
setName(String Name)
Set Name (profile photo side)
|
void |
setNation(String Nation)
Set Ethnicity (profile photo side)
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
setSex(String Sex)
Set Gender (profile photo side)
|
void |
setValidDate(String ValidDate)
Set Validity period (national emblem side)
|
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 IDCardOCRResponse()
public IDCardOCRResponse(IDCardOCRResponse source)
public String getName()
public void setName(String Name)
Name
- Name (profile photo side)public String getSex()
public void setSex(String Sex)
Sex
- Gender (profile photo side)public String getNation()
public void setNation(String Nation)
Nation
- Ethnicity (profile photo side)public String getBirth()
public void setBirth(String Birth)
Birth
- Date of birth (profile photo side)public String getAddress()
public void setAddress(String Address)
Address
- Address (profile photo side)public String getIdNum()
public void setIdNum(String IdNum)
IdNum
- ID number (profile photo side)public String getAuthority()
public void setAuthority(String Authority)
Authority
- Issuing authority (national emblem side)public String getValidDate()
public void setValidDate(String ValidDate)
ValidDate
- Validity period (national emblem side)public String getAdvancedInfo()
public void setAdvancedInfo(String AdvancedInfo)
AdvancedInfo
- Extended information, which will be returned only when requested. For the input parameters, please see example 3 and example 4.
`IdCard`: Base64-encoded content of the cropped ID card photo, which will be returned if `Config.CropIdCard` is set to `true`.
`Portrait`: Base64-encoded content of the ID photo on the card, which will be returned if `Config.CropPortrait` is set to `true`.
`Quality`: Image quality score, which will be returned if `Config.Quality` is set to `true`. Value range: 0–100. The lower the score, the blurrier the image. The recommended threshold is ≥ 50.
`BorderCodeValue`: Warning threshold score for incomplete ID card borders, which will be returned if `Config.BorderCheckWarn` is set to `true`. Value range: 0–100. The lower the score, the lower the probability of border occlusion. The recommended threshold value is ≤ 50.
`WarnInfos`: Warning information. Warning codes and descriptions are as follows:
-9100: The ID card validity period is invalid.
-9101: The ID card borders are incomplete.
-9102: The ID card image is photocopied.
-9103: The ID card image is spoofed.
-9104: The ID card is a temporary one.
-9105: The ID card frame is occluded.
-9106: The ID card image is photoshopped.
-9107: The ID card image has glares.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2024. All rights reserved.