public class SmartStructuralOCRV2Request extends AbstractModel
header, skipSign
Constructor and Description |
---|
SmartStructuralOCRV2Request() |
SmartStructuralOCRV2Request(SmartStructuralOCRV2Request 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 The Base64-encoded value of the image.
|
String |
getImageUrl()
Get The URL of the image.
|
Boolean |
getIsPdf()
Get Whether to enable PDF recognition.
|
String[] |
getItemNames()
Get The names of the fields you want to return for the structured information recognition.
|
Long |
getPdfPageNumber()
Get The number of the PDF page that needs to be recognized.
|
Boolean |
getReturnFullText()
Get Whether to enable recognition of all fields.
|
void |
setImageBase64(String ImageBase64)
Set The Base64-encoded value of the image.
|
void |
setImageUrl(String ImageUrl)
Set The URL of the image.
|
void |
setIsPdf(Boolean IsPdf)
Set Whether to enable PDF recognition.
|
void |
setItemNames(String[] ItemNames)
Set The names of the fields you want to return for the structured information recognition.
|
void |
setPdfPageNumber(Long PdfPageNumber)
Set The number of the PDF page that needs to be recognized.
|
void |
setReturnFullText(Boolean ReturnFullText)
Set Whether to enable recognition of all fields.
|
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 SmartStructuralOCRV2Request()
public SmartStructuralOCRV2Request(SmartStructuralOCRV2Request source)
public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl
- The URL of the image.
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
The download speed and stability of non-Tencent Cloud URLs may be low.public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- The Base64-encoded value of the image.
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.public Boolean getIsPdf()
public void setIsPdf(Boolean IsPdf)
IsPdf
- Whether to enable PDF recognition. Default value: `false`. If you enable this feature, both images and PDF files can be recognized.public Long getPdfPageNumber()
public void setPdfPageNumber(Long PdfPageNumber)
PdfPageNumber
- The number of the PDF page that needs to be recognized. Only one single PDF page can be recognized. This parameter is valid if the uploaded file is a PDF and the value of `IsPdf` is `true`. Default value: `1`.public String[] getItemNames()
public void setItemNames(String[] ItemNames)
ItemNames
- The names of the fields you want to return for the structured information recognition.
For example, if you want to return only the recognition result of the "Name" and "Gender" fields, set this parameter as follows:
ItemNames=["Name","Gender"]public Boolean getReturnFullText()
public void setReturnFullText(Boolean ReturnFullText)
ReturnFullText
- Whether to enable recognition of all fields.Copyright © 2024. All rights reserved.