public class SmartStructuralProRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SmartStructuralProRequest() |
SmartStructuralProRequest(SmartStructuralProRequest 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 |
getConfigId()
Get Configuration ID support: General
-- General scenarios; InvoiceEng
-- Ocean bill of lading, international invoice template;
-- Ocean shipment order template; WayBillEng
-- CustomsDeclaration
-- WeightNote
-- MedicalMeter
|
Boolean |
getEnableCoord()
Get Enable recognition of coordinate values in full-text fields
|
String |
getImageBase64()
Get The Base64-encoded value of the image.
|
String |
getImageUrl()
Get The URL of the image.
|
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 |
setConfigId(String ConfigId)
Set Configuration ID support: General
-- General scenarios; InvoiceEng
-- Ocean bill of lading, international invoice template;
-- Ocean shipment order template; WayBillEng
-- CustomsDeclaration
-- WeightNote
-- MedicalMeter
|
void |
setEnableCoord(Boolean EnableCoord)
Set Enable recognition of coordinate values in full-text fields
|
void |
setImageBase64(String ImageBase64)
Set The Base64-encoded value of the image.
|
void |
setImageUrl(String ImageUrl)
Set The URL of the image.
|
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, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SmartStructuralProRequest()
public SmartStructuralProRequest(SmartStructuralProRequest 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 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 `. 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.public String getConfigId()
public void setConfigId(String ConfigId)
ConfigId
- Configuration ID support: General
-- General scenarios; InvoiceEng
-- Ocean bill of lading, international invoice template;
-- Ocean shipment order template; WayBillEng
-- CustomsDeclaration
-- WeightNote
-- MedicalMeterpublic Boolean getEnableCoord()
public void setEnableCoord(Boolean EnableCoord)
EnableCoord
- Enable recognition of coordinate values in full-text fieldsCopyright © 2025. All rights reserved.