public class InvoiceItem extends AbstractModel
header, skipSign
Constructor and Description |
---|
InvoiceItem() |
InvoiceItem(InvoiceItem 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 |
---|---|
Float |
getAngle()
Get The rotation angle of the recognized image in the image with multiple types of invoices/tickets.
|
String |
getCode()
Get The recognition result.
|
String |
getCutImage()
Get The image file after cropping, encoded in Base64.
|
Long |
getPage()
Get The number of the page on which the recognized invoice is in the image or PDF file, starting from 1 by default.
|
Polygon |
getPolygon()
Get The coordinates of the four vertices of the rotated image.
|
SingleInvoiceItem |
getSingleInvoiceInfos()
Get The recognized content.
|
String |
getSubType()
Get The detailed invoice type.
|
String |
getSubTypeDescription()
Get The description of the detailed invoice type.
|
Long |
getType()
Get The type of invoice/ticket to which the recognized image belongs.
|
String |
getTypeDescription()
Get The invoice description.
|
void |
setAngle(Float Angle)
Set The rotation angle of the recognized image in the image with multiple types of invoices/tickets.
|
void |
setCode(String Code)
Set The recognition result.
|
void |
setCutImage(String CutImage)
Set The image file after cropping, encoded in Base64.
|
void |
setPage(Long Page)
Set The number of the page on which the recognized invoice is in the image or PDF file, starting from 1 by default.
|
void |
setPolygon(Polygon Polygon)
Set The coordinates of the four vertices of the rotated image.
|
void |
setSingleInvoiceInfos(SingleInvoiceItem SingleInvoiceInfos)
Set The recognized content.
|
void |
setSubType(String SubType)
Set The detailed invoice type.
|
void |
setSubTypeDescription(String SubTypeDescription)
Set The description of the detailed invoice type.
|
void |
setType(Long Type)
Set The type of invoice/ticket to which the recognized image belongs.
|
void |
setTypeDescription(String TypeDescription)
Set The invoice description.
|
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 InvoiceItem()
public InvoiceItem(InvoiceItem source)
public String getCode()
public void setCode(String Code)
Code
- The recognition result.
`OK`: Recognition is successful.
`FailedOperation.UnsupportedInvoice`: Recognition is not supported.
`FailedOperation.UnKnowError`: Recognition failed.
For the information about other error codes, see the OCR API description for each invoice/ticket.public Long getType()
public void setType(Long Type)
Type
- The type of invoice/ticket to which the recognized image belongs.
-1: Unknown
0: Taxi receipt
1: Quota invoice
2: Train ticket
3: VAT invoice
5: Itinerary/Receipt of e-ticket for air transportation
8: General machine-printed invoice
9: Bus ticket
10: Ship ticket
11: VAT invoice (roll)
12: Car sales invoice
13: Toll receipt
15: Non-tax revenue invoice
16: Fully digitalized electronic invoicepublic Polygon getPolygon()
public void setPolygon(Polygon Polygon)
Polygon
- The coordinates of the four vertices of the rotated image.public Float getAngle()
public void setAngle(Float Angle)
Angle
- The rotation angle of the recognized image in the image with multiple types of invoices/tickets.public SingleInvoiceItem getSingleInvoiceInfos()
public void setSingleInvoiceInfos(SingleInvoiceItem SingleInvoiceInfos)
SingleInvoiceInfos
- The recognized content.public Long getPage()
public void setPage(Long Page)
Page
- The number of the page on which the recognized invoice is in the image or PDF file, starting from 1 by default.public String getSubType()
public void setSubType(String SubType)
SubType
- The detailed invoice type. See the description of `SubType`.public String getTypeDescription()
public void setTypeDescription(String TypeDescription)
TypeDescription
- The invoice description. See the description of `TypeDescription`.public String getCutImage()
public void setCutImage(String CutImage)
CutImage
- The image file after cropping, encoded in Base64. This is returned if `EnableCutImage` is set to `true`.public String getSubTypeDescription()
public void setSubTypeDescription(String SubTypeDescription)
SubTypeDescription
- The description of the detailed invoice type. See the description of `SubType`.Copyright © 2024. All rights reserved.