public class VatInvoiceOCRRequest extends AbstractModel
Constructor and Description |
---|
VatInvoiceOCRRequest() |
VatInvoiceOCRRequest(VatInvoiceOCRRequest 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 |
getImageBase64()
Get 图片/PDF的 Base64 值。
支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
支持的图片/PDF大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
String |
getImageUrl()
Get 图片/PDF的 Url 地址。
支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
支持的图片/PDF大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
Boolean |
getIsPdf()
Get 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
Long |
getPdfPageNumber()
Get 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
void |
setImageBase64(String ImageBase64)
Set 图片/PDF的 Base64 值。
支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
支持的图片/PDF大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
void |
setImageUrl(String ImageUrl)
Set 图片/PDF的 Url 地址。
支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
支持的图片/PDF大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
void |
setIsPdf(Boolean IsPdf)
Set 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
void |
setPdfPageNumber(Long PdfPageNumber)
Set 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public VatInvoiceOCRRequest()
public VatInvoiceOCRRequest(VatInvoiceOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- 图片/PDF的 Base64 值。
支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
支持的图片/PDF大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl
- 图片/PDF的 Url 地址。
支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
支持的图片/PDF大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
非腾讯云存储的 Url 速度和稳定性可能受一定影响。public Boolean getIsPdf()
public void setIsPdf(Boolean IsPdf)
IsPdf
- 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。public Long getPdfPageNumber()
public void setPdfPageNumber(Long PdfPageNumber)
PdfPageNumber
- 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。Copyright © 2021. All rights reserved.