public class PassportOCRRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| PassportOCRRequest() | 
| PassportOCRRequest(PassportOCRRequest 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 | 
|---|---|
| Boolean | getCropPortrait()Get 是否返回头像和位置坐标 | 
| String | getImageBase64()Get 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 | 
| String | getImageUrl()Get 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。 | 
| String | getType()Get 默认填写CN
支持中国大陆地区护照。 | 
| void | setCropPortrait(Boolean CropPortrait)Set 是否返回头像和位置坐标 | 
| void | setImageBase64(String ImageBase64)Set 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 | 
| void | setImageUrl(String ImageUrl)Set 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。 | 
| void | setType(String Type)Set 默认填写CN
支持中国大陆地区护照。 | 
| 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, toJsonStringpublic PassportOCRRequest()
public PassportOCRRequest(PassportOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64 - 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl - 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。public String getType()
public void setType(String Type)
Type - 默认填写CN
支持中国大陆地区护照。public Boolean getCropPortrait()
public void setCropPortrait(Boolean CropPortrait)
CropPortrait - 是否返回头像和位置坐标Copyright © 2025. All rights reserved.