public class RecognizeMainlandIDCardOCRRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
RecognizeMainlandIDCardOCRRequest() |
RecognizeMainlandIDCardOCRRequest(RecognizeMainlandIDCardOCRRequest 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 |
getCardSide()
Get FRONT: The side of the ID card with the photo (portrait side), BACK: The side of the ID card with the national emblem (national emblem side).
|
Boolean |
getCropIdCard()
Get Whether to enable ID card photo cropping (removing excess edges outside the ID, automatically correcting the shooting angle), the default value is false
|
Boolean |
getCropPortrait()
Get Whether to return the ID card portrait, the default is false
|
String |
getImageBase64()
Get The Base64 value of the image.
|
String |
getImageUrl()
Get The URL address of the image.
|
void |
setCardSide(String CardSide)
Set FRONT: The side of the ID card with the photo (portrait side), BACK: The side of the ID card with the national emblem (national emblem side).
|
void |
setCropIdCard(Boolean CropIdCard)
Set Whether to enable ID card photo cropping (removing excess edges outside the ID, automatically correcting the shooting angle), the default value is false
|
void |
setCropPortrait(Boolean CropPortrait)
Set Whether to return the ID card portrait, the default is false
|
void |
setImageBase64(String ImageBase64)
Set The Base64 value of the image.
|
void |
setImageUrl(String ImageUrl)
Set The URL address of the image.
|
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 RecognizeMainlandIDCardOCRRequest()
public RecognizeMainlandIDCardOCRRequest(RecognizeMainlandIDCardOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- The Base64 value of the image. The image is required to be no larger than 7M after Base64 encoding, and the resolution is recommended to be 500*800 or above. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupies at least 2/3 of the picture. One of ImageUrl and ImageBase64 of the image must be provided. If both are provided, only ImageUrl will be used.public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl
- The URL address of the image. The image is required to be no larger than 7M after Base64 encoding, and the resolution is recommended to be 500*800 or above. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupies at least 2/3 of the picture. It is recommended that images be stored in Tencent Cloud to ensure higher download speed and stability.public String getCardSide()
public void setCardSide(String CardSide)
CardSide
- FRONT: The side of the ID card with the photo (portrait side), BACK: The side of the ID card with the national emblem (national emblem side). If this parameter is not filled in, the front and back of the ID card will be automatically determined for you.public Boolean getCropPortrait()
public void setCropPortrait(Boolean CropPortrait)
CropPortrait
- Whether to return the ID card portrait, the default is falsepublic Boolean getCropIdCard()
public void setCropIdCard(Boolean CropIdCard)
CropIdCard
- Whether to enable ID card photo cropping (removing excess edges outside the ID, automatically correcting the shooting angle), the default value is falseCopyright © 2024. All rights reserved.