public class BankCardOCRRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
BankCardOCRRequest() |
BankCardOCRRequest(BankCardOCRRequest 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 |
getEnableBorderCheck()
Get Whether to enable obscured border check.
|
Boolean |
getEnableCopyCheck()
Get Whether to enable photocopy check.
|
Boolean |
getEnableQualityValue()
Get Whether to return the image quality value, which measures how clear an image is.
|
Boolean |
getEnableReshootCheck()
Get Whether to enable photograph check.
|
String |
getImageBase64()
Get Base64-encoded value of the image.
|
String |
getImageUrl()
Get URL address of image.
|
Boolean |
getRetBorderCutImage()
Get Whether to return the bank card image data after preprocessing (precise cropping and alignment).
|
Boolean |
getRetCardNoImage()
Get Whether to return the card number image data after slicing.
|
void |
setEnableBorderCheck(Boolean EnableBorderCheck)
Set Whether to enable obscured border check.
|
void |
setEnableCopyCheck(Boolean EnableCopyCheck)
Set Whether to enable photocopy check.
|
void |
setEnableQualityValue(Boolean EnableQualityValue)
Set Whether to return the image quality value, which measures how clear an image is.
|
void |
setEnableReshootCheck(Boolean EnableReshootCheck)
Set Whether to enable photograph check.
|
void |
setImageBase64(String ImageBase64)
Set Base64-encoded value of the image.
|
void |
setImageUrl(String ImageUrl)
Set URL address of image.
|
void |
setRetBorderCutImage(Boolean RetBorderCutImage)
Set Whether to return the bank card image data after preprocessing (precise cropping and alignment).
|
void |
setRetCardNoImage(Boolean RetCardNoImage)
Set Whether to return the card number image data after slicing.
|
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 BankCardOCRRequest()
public BankCardOCRRequest(BankCardOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- Base64-encoded value 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.
Either the `ImageUrl` or `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
- URL address of image. (This field is not supported outside Chinese mainland)
Supported image formats: PNG, JPG, JPEG. GIF is currently not supported.
Supported image size: the downloaded image cannot exceed 7 MB after being Base64-encoded. The download time of the image cannot exceed 3 seconds.
We recommend you 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.public Boolean getRetBorderCutImage()
public void setRetBorderCutImage(Boolean RetBorderCutImage)
RetBorderCutImage
- Whether to return the bank card image data after preprocessing (precise cropping and alignment). Default value: `false`public Boolean getRetCardNoImage()
public void setRetCardNoImage(Boolean RetCardNoImage)
RetCardNoImage
- Whether to return the card number image data after slicing. Default value: `false`public Boolean getEnableCopyCheck()
public void setEnableCopyCheck(Boolean EnableCopyCheck)
EnableCopyCheck
- Whether to enable photocopy check. If the input image is a bank card photocopy, an alarm will be returned. Default value: `false`public Boolean getEnableReshootCheck()
public void setEnableReshootCheck(Boolean EnableReshootCheck)
EnableReshootCheck
- Whether to enable photograph check. If the input image is a bank card photograph, an alarm will be returned. Default value: `false`public Boolean getEnableBorderCheck()
public void setEnableBorderCheck(Boolean EnableBorderCheck)
EnableBorderCheck
- Whether to enable obscured border check. If the input image is a bank card with obscured border, an alarm will be returned. Default value: `false`public Boolean getEnableQualityValue()
public void setEnableQualityValue(Boolean EnableQualityValue)
EnableQualityValue
- Whether to return the image quality value, which measures how clear an image is. Default value: `false`Copyright © 2024. All rights reserved.