public class RecognizeThaiIDCardOCRRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
RecognizeThaiIDCardOCRRequest() |
RecognizeThaiIDCardOCRRequest(RecognizeThaiIDCardOCRRequest 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 |
getBackImageBase64()
Get Base64 value of the image on the back of the card.
|
String |
getBackImageUrl()
Get The URL address of the image on the back of the card.
|
Boolean |
getCropPortrait()
Get Whether to crop the profile photo.
|
String |
getImageBase64()
Get The Base64-encoded value of an image.
|
String |
getImageUrl()
Get The URL of the image.
|
void |
setBackImageBase64(String BackImageBase64)
Set Base64 value of the image on the back of the card.
|
void |
setBackImageUrl(String BackImageUrl)
Set The URL address of the image on the back of the card.
|
void |
setCropPortrait(Boolean CropPortrait)
Set Whether to crop the profile photo.
|
void |
setImageBase64(String ImageBase64)
Set The Base64-encoded value of an image.
|
void |
setImageUrl(String ImageUrl)
Set The URL 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, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RecognizeThaiIDCardOCRRequest()
public RecognizeThaiIDCardOCRRequest(RecognizeThaiIDCardOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- The Base64-encoded value of an image. The image cannot exceed 7 MB after being Base64-encoded. A resolution above 500 x 800 is recommended. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupy more than 2/3 area of the image.
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, `ImageUrl` is used.public String getBackImageBase64()
public void setBackImageBase64(String BackImageBase64)
BackImageBase64
- Base64 value of the image on the back of the card. Supported image formats: PNG, JPG, JPEG. GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download takes no more than 3 seconds. 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 of the image. The image cannot exceed 7 MB after being Base64-encoded. A resolution above 500 x 800 is recommended. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupy more than 2/3 area of the image.
We recommend that you store the image in Tencent Cloud for higher download speed and stability.public String getBackImageUrl()
public void setBackImageUrl(String BackImageUrl)
BackImageUrl
- The URL address of the image on the back of the card. Supported image formats: PNG, JPG, JPEG. GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download takes no more than 3 seconds. Storing images in Tencent Cloud URLs can ensure higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The URL speed and stability of non-Tencent cloud storage may be affected to a certain extent.public Boolean getCropPortrait()
public void setCropPortrait(Boolean CropPortrait)
CropPortrait
- Whether to crop the profile photo. The default value is `false`, meaning not to return the Base64-encoded value of the profile photo on the Thai identity card.
When this parameter is set to `true`, the Base64-encoded value of the profile photo on the Thai identity card after rotation correction is returned.Copyright © 2025. All rights reserved.