文档

RecognizeInvoice - 增值税发票识别

更新时间:

增值税发票识别。

接口说明

本接口适用场景

  • 阿里云增值税发票识别,是阿里云官方自研 OCR 文字识别产品,适用于识别增值税发票上所包含的价税合计、发票代码、发票号码等关键信息的场景。
  • 阿里云 OCR 产品基于阿里巴巴达摩院强大的 AI 技术及海量数据,历经多年沉淀打磨,具有服务稳定、操作简易、实时性高、能力全面等几大优势。
  • 本接口图片示例

本接口核心能力

分类概述
图像增强默认支持图像增强,包括图像自动旋转、畸变自动矫正、模糊图片自动增强等能力。
多类型覆盖支持模糊、光照不均、透视畸变、任意背景等低质量图像识别。
高精度识别总体识别准确率可达 98%。

如何使用本接口

步骤概述
1开通 票据凭证识别 服务。开通服务前后,您可以通过体验馆免费体验本功能识别效果。
2购买增值税发票识别资源包。本 API 会赠送免费额度,可使用免费额度测试。您也可以不购买资源包,系统会通过“按量付费”方式按实际调用量自动扣款。
3可以参照调试页面提供的代码示例完成 API 接入开发。接入完成后,调用 API 获取识别结果。如果使用子账号调用接口,需要阿里云账号(主账号)对 RAM 账号进行授权。创建 RAM 用户的具体操作,请参考:创建 RAM 用户。文字识别服务提供一种系统授权策略,即 AliyunOCRFullAccess。具体授权操作,请参见在用户页面为 RAM 用户授权。

重要提示

类型概述
图片格式
  • 本接口支持:PNG、JPG、JPEG、BMP、GIF、TIFF、WebP、PDF、OFD。
图片尺寸
  • 图片长宽需要大于 15 像素,小于 8192 像素。
  • 长宽比需要小于 50。
  • 如需达到较好识别效果,建议长宽均大于 500px。
图片大小
  • 图片二进制文件不能超过 10MB。
  • 图片过大会影响接口响应速度,建议使用小于 1.5M 图片进行识别,且通过传图片 URL 的方式调用接口。
相关能力

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ocr:RecognizeInvoiceWrite
  • 全部资源
    *

请求参数

名称类型必填描述示例值
Urlstring
  • 本字段和 body 字段二选一,不可同时透传或同时为空。
  • 图片链接(长度不超 2048,不支持 base64)。
https://img.alicdn.com/tfs/TB1qIIfXAPoK1RjSZKbXXX1IXXa-808-523.jpg
bodybyte
  • 本字段和 URL 字段二选一,不可同时透传或同时为空。
  • 图片二进制文件,最大 10MB。
  • 使用 HTTP 方式调用,把图片二进制文件放到 HTTP body 中上传即可。
  • 使用 SDK 的方式调用,把图片放到 SDK 的 body 中即可。
图片二进制文件
PageNointeger
  • 指定识别的 PDF/OFD 页码;例如:pageNo=6,识别 PDF/OFD 的第六页。
  • 如果该参数为空,或传值大于 PDF/OFD 总页数,则识别 PDF/OFD 的第一页。
  • 如果使用 SDK 设置此参数,请更新 SDK 版本,该参数在 SDK 版本 1.1.16 开始支持。
1

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求唯一 ID

43A29C77-405E-4CC0-BC55-EE694AD00655
Datastring

返回数据

{ "angle": 0, "data": { "invoiceCode": "031001600211", "invoiceNumber": "67516978", "printedInvoiceCode": "", "printedInvoiceNumber": "", "invoiceDate": "2017年02月12日", "machineCode": "661619906841", "checkCode": "62850389773340912868", "purchaserName": "黄宏伟", "purchaserTaxNumber": "", "purchaserContactInfo": "", "purchaserBankAccountInfo": "", "passwordArea": "<87*>>53>5023>-446>/4+83/5* *>5/81<75/1931>4>>73<0+2/0/ 4378-2*7*-9<1-0>27>167/9831 3*588/+/81<75/1931>4>>7571<", "invoiceAmountPreTax": "75.21", "invoiceTax": "12.79", "totalAmountInWords": "捌拾捌圆整", "totalAmount": "88.00", "sellerName": "上海电子商务有限公司", "sellerTaxNumber": "91310106552993944D", "sellerContactInfo": "上海市静安区延安中路841号东方海外大厦2601室021-62898", "sellerBankAccountInfo": "中国银行股份有限公司上海市华山路支行4403592358", "recipient": "", "reviewer": "", "drawer": "天猫超市", "remarks": "", "title": "上海增值税电子普通发票", "formType": "", "invoiceType": "电子普通发票", "specialTag": "", "invoiceDetails": [{ "itemName": "【天猫超市】倍斯特移动电源20000M毫安充电宝手机通用大容量快充", "specification": "", "unit": "", "quantity": "1", "unitPrice": "75.21", "amount": "75.21", "taxRate": "17%", "tax": "12.79" }] }, "height": 523, "orgHeight": 523, "orgWidth": 808, "prism_keyValueInfo": [{ "key": "invoiceCode", "keyProb": 100, "value": "031001600211", "valuePos": [{ "x": 700, "y": 23 }, { "x": 700, "y": 35 }, { "x": 630, "y": 35 }, { "x": 630, "y": 22 }], "valueProb": 100 }, { "key": "invoiceNumber", "keyProb": 100, "value": "67516978", "valuePos": [{ "x": 678, "y": 47 }, { "x": 678, "y": 60 }, { "x": 630, "y": 60 }, { "x": 630, "y": 47 }], "valueProb": 100 }, { "key": "printedInvoiceCode", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "printedInvoiceNumber", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "invoiceDate", "keyProb": 100, "value": "2017年02月12日", "valuePos": [{ "x": 735, "y": 70 }, { "x": 735, "y": 85 }, { "x": 632, "y": 85 }, { "x": 632, "y": 70 }], "valueProb": 100 }, { "key": "machineCode", "keyProb": 100, "value": "661619906841", "valuePos": [{ "x": 153, "y": 95 }, { "x": 153, "y": 107 }, { "x": 83, "y": 107 }, { "x": 83, "y": 95 }], "valueProb": 100 }, { "key": "checkCode", "keyProb": 100, "value": "62850389773340912868", "valuePos": [{ "x": 762, "y": 95 }, { "x": 762, "y": 108 }, { "x": 630, "y": 108 }, { "x": 630, "y": 95 }], "valueProb": 100 }, { "key": "purchaserName", "keyProb": 100, "value": "黄宏伟", "valuePos": [{ "x": 169, "y": 121 }, { "x": 169, "y": 136 }, { "x": 130, "y": 136 }, { "x": 130, "y": 121 }], "valueProb": 100 }, { "key": "purchaserTaxNumber", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "purchaserContactInfo", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "purchaserBankAccountInfo", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "passwordArea", "keyProb": 100, "value": "<87*>>53>5023>-446>/4+83/5* *>5/81<75/1931>4>>73<0+2/0/ 4378-2*7*-9<1-0>27>167/9831 3*588/+/81<75/1931>4>>7571<", "valuePos": [{ "x": 768, "y": 126 }, { "x": 768, "y": 199 }, { "x": 505, "y": 199 }, { "x": 505, "y": 125 }], "valueProb": 100 }, { "key": "invoiceAmountPreTax", "keyProb": 100, "value": "75.21", "valuePos": [{ "x": 634, "y": 360 }, { "x": 634, "y": 374 }, { "x": 576, "y": 374 }, { "x": 576, "y": 360 }], "valueProb": 100 }, { "key": "invoiceTax", "keyProb": 100, "value": "12.79", "valuePos": [{ "x": 788, "y": 360 }, { "x": 788, "y": 374 }, { "x": 729, "y": 374 }, { "x": 729, "y": 360 }], "valueProb": 100 }, { "key": "totalAmountInWords", "keyProb": 100, "value": "捌拾捌圆整", "valuePos": [{ "x": 246, "y": 382 }, { "x": 311, "y": 381 }, { "x": 311, "y": 395 }, { "x": 247, "y": 397 }], "valueProb": 100 }, { "key": "totalAmount", "keyProb": 100, "value": "88.00", "valuePos": [{ "x": 628, "y": 395 }, { "x": 629, "y": 381 }, { "x": 689, "y": 382 }, { "x": 689, "y": 397 }], "valueProb": 100 }, { "key": "sellerName", "keyProb": 100, "value": "上海电子商务有限公司", "valuePos": [{ "x": 278, "y": 407 }, { "x": 278, "y": 422 }, { "x": 129, "y": 422 }, { "x": 129, "y": 407 }], "valueProb": 100 }, { "key": "sellerTaxNumber", "keyProb": 100, "value": "91310106552993944D", "valuePos": [{ "x": 129, "y": 427 }, { "x": 307, "y": 425 }, { "x": 307, "y": 440 }, { "x": 130, "y": 441 }], "valueProb": 100 }, { "key": "sellerContactInfo", "keyProb": 100, "value": "上海市静安区延安中路841号东方海外大厦2601室021-62898", "valuePos": [{ "x": 128, "y": 447 }, { "x": 410, "y": 447 }, { "x": 410, "y": 461 }, { "x": 128, "y": 461 }], "valueProb": 100 }, { "key": "sellerBankAccountInfo", "keyProb": 100, "value": "中国银行股份有限公司上海市华山路支行4403592358", "valuePos": [{ "x": 413, "y": 464 }, { "x": 413, "y": 478 }, { "x": 130, "y": 478 }, { "x": 130, "y": 464 }], "valueProb": 100 }, { "key": "recipient", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "reviewer", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "drawer", "keyProb": 100, "value": "天猫超市", "valuePos": [{ "x": 507, "y": 490 }, { "x": 507, "y": 506 }, { "x": 456, "y": 506 }, { "x": 456, "y": 490 }], "valueProb": 100 }, { "key": "remarks", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "title", "keyProb": 99, "value": "上海增值税电子普通发票", "valuePos": [{ "x": 553, "y": 37 }, { "x": 553, "y": 69 }, { "x": 252, "y": 68 }, { "x": 252, "y": 36 }], "valueProb": 99 }, { "key": "formType", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "invoiceType", "keyProb": 99, "value": "电子普通发票", "valuePos": [{ "x": 553, "y": 37 }, { "x": 553, "y": 69 }, { "x": 252, "y": 68 }, { "x": 252, "y": 36 }], "valueProb": 99 }, { "key": "specialTag", "keyProb": 100, "value": "", "valueProb": 100 }, { "key": "invoiceDetails", "keyProb": 100, "value": "[{\"itemName\":\"【天猫超市】倍斯特移动电源20000M毫安充电宝手机通用大容量快充\",\"specification\":\"\",\"unit\":\"\",\"quantity\":\"1\",\"unitPrice\":\"75.21\",\"amount\":\"75.21\",\"taxRate\":\"17%\",\"tax\":\"12.79\"}]", "valueProb": 100 }], "width": 808 }
Codestring

状态码(如果识别成功,不会返回此字段)

如果识别成功,不会返回此字段
Messagestring

详细信息(如果识别成功,不会返回此字段)

如果识别成功,不会返回此字段

返回参数说明


字段类型说明
dataobject结构化信息。
angleint文字块的角度。
sliceRectlist检测出的子图坐标信息。
prism_keyValueInfolist结构化信息的坐标信息。
codeslist二维码信息。
ftypeint是否为复印件(1:是,0:否)。
heightint算法矫正图片后的高度。
widthint算法矫正图片后的宽度。
orgHeightint原图的高度。
orgWidthint原图的宽度。

识别结果(data 字段)

字段类型说明
invoiceCodestring发票代码。
invoiceNumberstring发票号码。
invoiceDatestring开票日期。
machineCodestring机器编码。
checkCodestring校验码。
purchaserNamestring受票方名称。
passwordAreastring密码区。
invoiceAmountPreTaxstring不含税金额。
invoiceTaxstring发票税额。
totalAmountInWordsstring大写金额。
totalAmountstring发票金额。
sellerNamestring销售方名称。
sellerTaxNumberstring销售方税号。
sellerContactInfostring销售方地址、电话。
sellerBankAccountInfostring销售方开户行、账号。
drawerstring开票人。
titlestring标题。
invoiceTypestring发票类型(数电专用发票、数电普通发票、电子普通发票、电子专用发票、专用发票、普通发票、通用发票)。
formTypestring联次。
printedInvoiceCodestring机打发票代码。
printedInvoiceNumberstring机打发票号码。
purchaserBankAccountInfostring受票方开户行、账号。
purchaserContactInfostring受票方地址、电话。
purchaserTaxNumberstring受票方税号。
recipientstring收款人。
remarksstring备注。
reviewerstring复核人。
specialTagstring特殊标识信息。
invoiceDetailslist发票详单。

发票详单信息(invoiceDetails 字段)

字段类型说明
itemNamestring货物或应税劳务、服务名称。
specificationstring规格型号。
unitstring单位。
quantitystring数量。
unitPricestring单价。
amountstring金额。
taxRatestring税率。
taxstring税额。

结构化坐标信息(prism_keyValueInfo 字段)

字段类型说明
keystring识别出的字段名称。
keyProbint字段名称置信度。
valuestring识别出的字段名称对应的值。
valueProbint字段名称对应值的置信度。
valuePoslist字段在原图中的四个点坐标(左上、右上、右下、左下)。

二维码信息(codes 字段)

字段类型说明
datastring二维码地址。
typestring二维码类型。
pointslist二维码四个点坐标(左上、右上、右下、左下)。

示例

正常返回示例

JSON格式

{
  "RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655",
  "Data": "{ \t\"angle\": 0, \t\"data\": { \t\t\"invoiceCode\": \"031001600211\", \t\t\"invoiceNumber\": \"67516978\", \t\t\"printedInvoiceCode\": \"\", \t\t\"printedInvoiceNumber\": \"\", \t\t\"invoiceDate\": \"2017年02月12日\", \t\t\"machineCode\": \"661619906841\", \t\t\"checkCode\": \"62850389773340912868\", \t\t\"purchaserName\": \"黄宏伟\", \t\t\"purchaserTaxNumber\": \"\", \t\t\"purchaserContactInfo\": \"\", \t\t\"purchaserBankAccountInfo\": \"\", \t\t\"passwordArea\": \"<87*>>53>5023>-446>/4+83/5* *>5/81<75/1931>4>>73<0+2/0/ 4378-2*7*-9<1-0>27>167/9831 3*588/+/81<75/1931>4>>7571<\", \t\t\"invoiceAmountPreTax\": \"75.21\", \t\t\"invoiceTax\": \"12.79\", \t\t\"totalAmountInWords\": \"捌拾捌圆整\", \t\t\"totalAmount\": \"88.00\", \t\t\"sellerName\": \"上海电子商务有限公司\", \t\t\"sellerTaxNumber\": \"91310106552993944D\", \t\t\"sellerContactInfo\": \"上海市静安区延安中路841号东方海外大厦2601室021-62898\", \t\t\"sellerBankAccountInfo\": \"中国银行股份有限公司上海市华山路支行4403592358\", \t\t\"recipient\": \"\", \t\t\"reviewer\": \"\", \t\t\"drawer\": \"天猫超市\", \t\t\"remarks\": \"\", \t\t\"title\": \"上海增值税电子普通发票\", \t\t\"formType\": \"\", \t\t\"invoiceType\": \"电子普通发票\", \t\t\"specialTag\": \"\", \t\t\"invoiceDetails\": [{ \t\t\t\"itemName\": \"【天猫超市】倍斯特移动电源20000M毫安充电宝手机通用大容量快充\", \t\t\t\"specification\": \"\", \t\t\t\"unit\": \"\", \t\t\t\"quantity\": \"1\", \t\t\t\"unitPrice\": \"75.21\", \t\t\t\"amount\": \"75.21\", \t\t\t\"taxRate\": \"17%\", \t\t\t\"tax\": \"12.79\" \t\t}] \t}, \t\"height\": 523, \t\"orgHeight\": 523, \t\"orgWidth\": 808, \t\"prism_keyValueInfo\": [{ \t\t\"key\": \"invoiceCode\", \t\t\"keyProb\": 100, \t\t\"value\": \"031001600211\", \t\t\"valuePos\": [{ \t\t\t\"x\": 700, \t\t\t\"y\": 23 \t\t}, { \t\t\t\"x\": 700, \t\t\t\"y\": 35 \t\t}, { \t\t\t\"x\": 630, \t\t\t\"y\": 35 \t\t}, { \t\t\t\"x\": 630, \t\t\t\"y\": 22 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceNumber\", \t\t\"keyProb\": 100, \t\t\"value\": \"67516978\", \t\t\"valuePos\": [{ \t\t\t\"x\": 678, \t\t\t\"y\": 47 \t\t}, { \t\t\t\"x\": 678, \t\t\t\"y\": 60 \t\t}, { \t\t\t\"x\": 630, \t\t\t\"y\": 60 \t\t}, { \t\t\t\"x\": 630, \t\t\t\"y\": 47 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"printedInvoiceCode\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"printedInvoiceNumber\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceDate\", \t\t\"keyProb\": 100, \t\t\"value\": \"2017年02月12日\", \t\t\"valuePos\": [{ \t\t\t\"x\": 735, \t\t\t\"y\": 70 \t\t}, { \t\t\t\"x\": 735, \t\t\t\"y\": 85 \t\t}, { \t\t\t\"x\": 632, \t\t\t\"y\": 85 \t\t}, { \t\t\t\"x\": 632, \t\t\t\"y\": 70 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"machineCode\", \t\t\"keyProb\": 100, \t\t\"value\": \"661619906841\", \t\t\"valuePos\": [{ \t\t\t\"x\": 153, \t\t\t\"y\": 95 \t\t}, { \t\t\t\"x\": 153, \t\t\t\"y\": 107 \t\t}, { \t\t\t\"x\": 83, \t\t\t\"y\": 107 \t\t}, { \t\t\t\"x\": 83, \t\t\t\"y\": 95 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"checkCode\", \t\t\"keyProb\": 100, \t\t\"value\": \"62850389773340912868\", \t\t\"valuePos\": [{ \t\t\t\"x\": 762, \t\t\t\"y\": 95 \t\t}, { \t\t\t\"x\": 762, \t\t\t\"y\": 108 \t\t}, { \t\t\t\"x\": 630, \t\t\t\"y\": 108 \t\t}, { \t\t\t\"x\": 630, \t\t\t\"y\": 95 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"purchaserName\", \t\t\"keyProb\": 100, \t\t\"value\": \"黄宏伟\", \t\t\"valuePos\": [{ \t\t\t\"x\": 169, \t\t\t\"y\": 121 \t\t}, { \t\t\t\"x\": 169, \t\t\t\"y\": 136 \t\t}, { \t\t\t\"x\": 130, \t\t\t\"y\": 136 \t\t}, { \t\t\t\"x\": 130, \t\t\t\"y\": 121 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"purchaserTaxNumber\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"purchaserContactInfo\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"purchaserBankAccountInfo\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"passwordArea\", \t\t\"keyProb\": 100, \t\t\"value\": \"<87*>>53>5023>-446>/4+83/5* *>5/81<75/1931>4>>73<0+2/0/ 4378-2*7*-9<1-0>27>167/9831 3*588/+/81<75/1931>4>>7571<\", \t\t\"valuePos\": [{ \t\t\t\"x\": 768, \t\t\t\"y\": 126 \t\t}, { \t\t\t\"x\": 768, \t\t\t\"y\": 199 \t\t}, { \t\t\t\"x\": 505, \t\t\t\"y\": 199 \t\t}, { \t\t\t\"x\": 505, \t\t\t\"y\": 125 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceAmountPreTax\", \t\t\"keyProb\": 100, \t\t\"value\": \"75.21\", \t\t\"valuePos\": [{ \t\t\t\"x\": 634, \t\t\t\"y\": 360 \t\t}, { \t\t\t\"x\": 634, \t\t\t\"y\": 374 \t\t}, { \t\t\t\"x\": 576, \t\t\t\"y\": 374 \t\t}, { \t\t\t\"x\": 576, \t\t\t\"y\": 360 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceTax\", \t\t\"keyProb\": 100, \t\t\"value\": \"12.79\", \t\t\"valuePos\": [{ \t\t\t\"x\": 788, \t\t\t\"y\": 360 \t\t}, { \t\t\t\"x\": 788, \t\t\t\"y\": 374 \t\t}, { \t\t\t\"x\": 729, \t\t\t\"y\": 374 \t\t}, { \t\t\t\"x\": 729, \t\t\t\"y\": 360 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"totalAmountInWords\", \t\t\"keyProb\": 100, \t\t\"value\": \"捌拾捌圆整\", \t\t\"valuePos\": [{ \t\t\t\"x\": 246, \t\t\t\"y\": 382 \t\t}, { \t\t\t\"x\": 311, \t\t\t\"y\": 381 \t\t}, { \t\t\t\"x\": 311, \t\t\t\"y\": 395 \t\t}, { \t\t\t\"x\": 247, \t\t\t\"y\": 397 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"totalAmount\", \t\t\"keyProb\": 100, \t\t\"value\": \"88.00\", \t\t\"valuePos\": [{ \t\t\t\"x\": 628, \t\t\t\"y\": 395 \t\t}, { \t\t\t\"x\": 629, \t\t\t\"y\": 381 \t\t}, { \t\t\t\"x\": 689, \t\t\t\"y\": 382 \t\t}, { \t\t\t\"x\": 689, \t\t\t\"y\": 397 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"sellerName\", \t\t\"keyProb\": 100, \t\t\"value\": \"上海电子商务有限公司\", \t\t\"valuePos\": [{ \t\t\t\"x\": 278, \t\t\t\"y\": 407 \t\t}, { \t\t\t\"x\": 278, \t\t\t\"y\": 422 \t\t}, { \t\t\t\"x\": 129, \t\t\t\"y\": 422 \t\t}, { \t\t\t\"x\": 129, \t\t\t\"y\": 407 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"sellerTaxNumber\", \t\t\"keyProb\": 100, \t\t\"value\": \"91310106552993944D\", \t\t\"valuePos\": [{ \t\t\t\"x\": 129, \t\t\t\"y\": 427 \t\t}, { \t\t\t\"x\": 307, \t\t\t\"y\": 425 \t\t}, { \t\t\t\"x\": 307, \t\t\t\"y\": 440 \t\t}, { \t\t\t\"x\": 130, \t\t\t\"y\": 441 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"sellerContactInfo\", \t\t\"keyProb\": 100, \t\t\"value\": \"上海市静安区延安中路841号东方海外大厦2601室021-62898\", \t\t\"valuePos\": [{ \t\t\t\"x\": 128, \t\t\t\"y\": 447 \t\t}, { \t\t\t\"x\": 410, \t\t\t\"y\": 447 \t\t}, { \t\t\t\"x\": 410, \t\t\t\"y\": 461 \t\t}, { \t\t\t\"x\": 128, \t\t\t\"y\": 461 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"sellerBankAccountInfo\", \t\t\"keyProb\": 100, \t\t\"value\": \"中国银行股份有限公司上海市华山路支行4403592358\", \t\t\"valuePos\": [{ \t\t\t\"x\": 413, \t\t\t\"y\": 464 \t\t}, { \t\t\t\"x\": 413, \t\t\t\"y\": 478 \t\t}, { \t\t\t\"x\": 130, \t\t\t\"y\": 478 \t\t}, { \t\t\t\"x\": 130, \t\t\t\"y\": 464 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"recipient\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"reviewer\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"drawer\", \t\t\"keyProb\": 100, \t\t\"value\": \"天猫超市\", \t\t\"valuePos\": [{ \t\t\t\"x\": 507, \t\t\t\"y\": 490 \t\t}, { \t\t\t\"x\": 507, \t\t\t\"y\": 506 \t\t}, { \t\t\t\"x\": 456, \t\t\t\"y\": 506 \t\t}, { \t\t\t\"x\": 456, \t\t\t\"y\": 490 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"remarks\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"title\", \t\t\"keyProb\": 99, \t\t\"value\": \"上海增值税电子普通发票\", \t\t\"valuePos\": [{ \t\t\t\"x\": 553, \t\t\t\"y\": 37 \t\t}, { \t\t\t\"x\": 553, \t\t\t\"y\": 69 \t\t}, { \t\t\t\"x\": 252, \t\t\t\"y\": 68 \t\t}, { \t\t\t\"x\": 252, \t\t\t\"y\": 36 \t\t}], \t\t\"valueProb\": 99 \t}, { \t\t\"key\": \"formType\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceType\", \t\t\"keyProb\": 99, \t\t\"value\": \"电子普通发票\", \t\t\"valuePos\": [{ \t\t\t\"x\": 553, \t\t\t\"y\": 37 \t\t}, { \t\t\t\"x\": 553, \t\t\t\"y\": 69 \t\t}, { \t\t\t\"x\": 252, \t\t\t\"y\": 68 \t\t}, { \t\t\t\"x\": 252, \t\t\t\"y\": 36 \t\t}], \t\t\"valueProb\": 99 \t}, { \t\t\"key\": \"specialTag\", \t\t\"keyProb\": 100, \t\t\"value\": \"\", \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceDetails\", \t\t\"keyProb\": 100, \t\t\"value\": \"[{\\\"itemName\\\":\\\"【天猫超市】倍斯特移动电源20000M毫安充电宝手机通用大容量快充\\\",\\\"specification\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"quantity\\\":\\\"1\\\",\\\"unitPrice\\\":\\\"75.21\\\",\\\"amount\\\":\\\"75.21\\\",\\\"taxRate\\\":\\\"17%\\\",\\\"tax\\\":\\\"12.79\\\"}]\", \t\t\"valueProb\": 100 \t}], \t\"width\": 808 }",
  "Code": "如果识别成功,不会返回此字段",
  "Message": "如果识别成功,不会返回此字段"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-07-06OpenAPI 入参发生变更看变更集
变更项变更内容
入参OpenAPI 入参发生变更
    新增入参:PageNo
2021-08-17OpenAPI 入参发生变更看变更集
变更项变更内容
入参OpenAPI 入参发生变更
    新增入参:body
  • 本页导读 (0)
文档反馈