接口说明
接口说明
- 票据识别,无需指定type,支持增值税专用发票、机动车销售统一发票、增值税普通发票、增值税普通发票(电子)、增值税普通发票(卷式)、二手车销售统一发票、火车票、船票、定额发票、机打发票、出租车发票、客运发票、航空运输电子客票行程单、销货清单、车辆通行费等。
- 部分开发语言demo如下,其他开发语言请参照文档进行开发,也欢迎热心的开发者到 讯飞开放平台社区 分享你们的demo。
[国内通用票据识别 demo java语言](https://xfyun-doc.cn-bj.ufileos.com/static%2F16848245282833552%2FinvoiceIdentification java demo.zip)
[国内通用票据识别 demo python语言](https://xfyun-doc.cn-bj.ufileos.com/static%2F16848241819892340%2FinvoiceIdentification python demo.zip) - 集成国内通用票据识别时,需按照以下要求:
内容 | 说明 |
---|---|
传输方式 | http[s] (为提高安全性,强烈推荐https) |
请求地址 | https://api.xf-yun.com/v1/private/s671ad72d 注:服务器IP不固定,为保证您的接口稳定,请勿通过指定IP的方式调用接口,使用域名方式调用 |
Content-Type | application/json;charset=UTF-8 |
接口鉴权 | 签名机制,详情请参照下方签名生成 |
字符编码 | UTF-8 |
响应格式 | 统一采用JSON格式 |
开发语言 | 任意,只要可以向讯飞云服务发起HTTP请求的均可 |
适用范围 | 任意操作系统,但因不支持跨域不适用于浏览器 |
图片格式 | jpg、jpeg、png、bmp、webp、tiff |
图片大小 | 最小尺寸:1B, 最大尺寸:10485760B |
#鉴权说明
在调用业务接口时,请求方需要对请求进行签名,服务端通过签名来校验请求的合法性。
#鉴权方法
通过在请求地址后面加上鉴权相关参数的方式,请注意影响鉴权结果的值有url、apiSecret、apiKey、date,如果调试鉴权,请务必按照示例中给的值进行调试,具体参数如下:
http示例url:
https://cn-huadong-1.xf-yun.com/v1/private/s671ad72d?host=cn-huadong-1.xf-yun.com&date=Mon%2C+22+May+2023+05%3A44%3A14+GMT&authorization=YXBpX2tleT0iYXBpa2V5WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFgiLCBhbGdvcml0aG09ImhtYWMtc2hhMjU2IiwgaGVhZGVycz0iaG9zdCBkYXRlIHJlcXVlc3QtbGluZSIsIHNpZ25hdHVyZT0iSWRzTUFtK2FMUHc3U1RCeWM0Q2JDcGg1YUNBcUZESjM0RkJoWkk5L2w2Yz0i
鉴权参数:
参数 | 类型 | 必须 | 说明 | 示例 |
---|---|---|---|---|
host | string | 是 | 请求主机 | api.xf-yun.com |
date | string | 是 | 当前时间戳,RFC1123格式("EEE, dd MMM yyyy HH:mm:ss z") | Mon, 22 May 2023 05:44:14 GMT |
authorization | string | 是 | 使用base64编码的签名相关信息(签名基于hamc-sha256计算) | 参考下方详细生成规则 |
• date参数生成规则:
date必须是UTC+0或GMT时区,RFC1123格式(Mon, 22 May 2023 05:44:14 GMT。
服务端会对date进行时钟偏移检查,最大允许300秒的偏差,超出偏差的请求都将被拒绝。
• authorization参数生成格式:
1)获取接口密钥APIKey 和 APISecret。
在讯飞开放平台控制台,创建一个应用后打开国内通用票据识别页面可以获取,均为32位字符串。
2)参数authorization base64编码前(authorization_origin)的格式如下。
api_key="$api_key",algorithm="hmac-sha256",headers="host date request-line",signature="$signature"
其中 api_key 是在控制台获取的APIKey,algorithm 是加密算法(仅支持hmac-sha256),headers 是参与签名的参数(见下方注释)。
signature 是使用加密算法对参与签名的参数签名后并使用base64编码的字符串,详见下方。
*注:* headers是参与签名的参数,请注意是固定的参数名("host date request-line"),而非这些参数的值。
3)signature的原始字段(signature_origin)规则如下。
signature原始字段由 host,date,request-line三个参数按照格式拼接成,
拼接的格式为(\n为换行符,’:’后面有一个空格):
host: $host\ndate: $date\n$request-line
假设
请求url = "http(s)://api.xf-yun.com/v1/private/s671ad72d"
date = "Mon, 22 May 2023 05:44:14 GMT"
那么 signature原始字段(signature_origin)则为:
host: api.xf-yun.com
date: Mon, 22 May 2023 05:44:14 GMT
POST /v1/private/s671ad72d HTTP/1.1
4)使用hmac-sha256算法结合apiSecret对signature_origin签名,获得签名后的摘要signature_sha。
signature_sha=hmac-sha256(signature_origin,$apiSecret)
其中 apiSecret 是在控制台获取的APISecret
5)使用base64编码对signature_sha进行编码获得最终的signature。
signature=base64(signature_sha)
假设
APISecret = "apisecretXXXXXXXXXXXXXXXXXXXXXXX"
date = "Mon, 22 May 2023 05:44:14 GMT"
则signature为
signature="IdsMAm+aLPw7STByc4CbCph5aCAqFDJ34FBhZI9/l6c="
6)根据以上信息拼接authorization base64编码前(authorization_origin)的字符串,示例如下。
api_key="apikeyXXXXXXXXXXXXXXXXXXXXXXXXXX", algorithm="hmac-sha256", headers="host date request-line", signature="IdsMAm+aLPw7STByc4CbCph5aCAqFDJ34FBhZI9/l6c="
注: headers是参与签名的参数,请注意是固定的参数名("host date request-line"),而非这些参数的值。
7)最后再对authorization_origin进行base64编码获得最终的authorization参数。
authorization = base64(authorization_origin)
示例结果为:
authorization=YXBpX2tleT0iYXBpa2V5WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFgiLCBhbGdvcml0aG09ImhtYWMtc2hhMjU2IiwgaGVhZGVycz0iaG9zdCBkYXRlIHJlcXVlc3QtbGluZSIsIHNpZ25hdHVyZT0iSWRzTUFtK2FMUHc3U1RCeWM0Q2JDcGg1YUNBcUZESjM0RkJoWkk5L2w2Yz0i
#鉴权结果
如果鉴权失败,则根据不同错误类型返回不同HTTP Code状态码,同时携带错误描述信息,详细错误说明如下:
HTTP Code | 说明 | 错误描述信息 | 解决方法 |
---|---|---|---|
401 | 缺少authorization参数 | {"message":"Unauthorized"} | 检查是否有authorization参数,详情见authorization参数详细生成规则 |
401 | 签名参数解析失败 | {“message”:”HMAC signature cannot be verified”} | 检查签名的各个参数是否有缺失是否正确,特别确认下复制的api_key是否正确 |
401 | 签名校验失败 | {“message”:”HMAC signature does not match”} | 签名验证失败,可能原因有很多。 1. 检查api_key,api_secret 是否正确。 2.检查计算签名的参数host,date,request-line是否按照协议要求拼接。 3. 检查signature签名的base64长度是否正常(正常44个字节)。 |
403 | 时钟偏移校验失败 | {“message”:”HMAC signature cannot be verified, a valid date or x-date header is required for HMAC Authentication”} | 检查服务器时间是否标准,相差5分钟以上会报此错误 |
时钟偏移校验失败示例:
HTTP/1.1 403 Forbidden
Date: Mon, 22 May 2023 05:44:14 GMT
Content-Length: 116
Content-Type: text/plain; charset=utf-8
{
"message": "HMAC signature does not match, a valid date or x-date header is required for HMAC Authentication"
}
text字段Base64解码后示例:
一、增值税普通发票
{
"imgOrgsize": [871, 1167],
"orientation": 0,
"region": [0, 39, 1167, 831],
"regionFourPoint": [5, 44, 1164, 44, 1164, 826, 5, 826],
"regionFourPointOri": [5, 44, 1164, 44, 1164, 826, 5, 826],
"title": "北京增值税普通发票",
"invoiceCode": "011001800204",
"invoiceNumber": "14662082",
"billingDate": "2019-05-29",
"amount": "30420.58",
"checkCode": "05931123004183384643",
"purchaserName": "深圳市xx建设集团股份有限公司",
"purchaserTaxNo": "914403001923609580",
"purchaserAddressPhone": "深圳市罗湖区笋岗街道资西社区桃园路xxx号x号仓x层302-03室0755-832xxx93",
"purchaserBank": "平安银行深圳中电支行110149xxxx2009",
"salesName": "北京xxxx科贸有限公司",
"salesTaxNo": "91110xxxA0057097N",
"salesAddressPhone": "北京市大兴区旧桥路x号院x号楼x层601135xxx11738",
"salesBankAndNo": "北京农村商业银行股份有限公司旧宫支行091600010xxx0011832",
"amountTaxCN": "叁万肆仟叁佰柒拾伍圆贰角陆分",
"amountTax": "34375.26",
"tax": "3954.68",
"receiverName": "韩林玲",
"recheckName": "张娜",
"drawerName": "王甜甜",
"passwordField": "03048048**1540<1>4-++*925*12956/9892>*/4303+-53534/+91*99-81>-1>53-1+343-+/8*86+45-14+3920790-01>9170684<2<80-/+",
"remarks": "校验码0593112300xxx3384643",
"invoiceLists": [{
"commodityName": "*金属制品*防脱器",
"specificationModel": "N31",
"unit": "",
"quantity": "",
"unitPrice": "14322.49203416225",
"amount": "3568.59",
"taxRate": "13%",
"tax": "463.92"
}, {
"commodityName": "*金属制品*合页",
"specificationModel": "NDHA10-LSW2001",
"unit": "",
"quantity": "",
"unitPrice": "71713.2389380530",
"amount": "9492.32",
"taxRate": "13%",
"tax": "1234.00"
}, {
"commodityName": "*金属制品*垫块",
"specificationModel": "N33注塑黑色LC",
"unit": "",
"quantity": "1",
"unitPrice": "8.38938053097",
"amount": "7.01",
"taxRate": "13%",
"tax": "0.91"
}, {
"commodityName": "*金属制品*边传动杆",
"specificationModel": "N39",
"unit": "",
"quantity": "36",
"unitPrice": "3.11504424778",
"amount": "112.14",
"taxRate": "13%",
"tax": "14.58"
}, {
"commodityName": "*金属制品*防误传动杆",
"specificationModel": "FWG10",
"unit": "",
"quantity": "",
"unitPrice": "14327.78761061946",
"amount": "11151.86",
"taxRate": "13%",
"tax": "1449.74"
}, {
"commodityName": "*金属制品*滑撑",
"specificationModel": "FJ600A12",
"unit": "",
"quantity": "14",
"unitPrice": "15.3413400758",
"amount": "214.78",
"taxRate": "13%",
"tax": "27.92"
}, {
"commodityName": "*金属制品*拉杆",
"specificationModel": "LG11",
"unit": "PCS",
"quantity": "2",
"unitPrice": "37.4601769911",
"amount": "74.92",
"taxRate": "13%",
"tax": "9.74"
}, {
"commodityName": "*金属制品*翻转支撑",
"specificationModel": "N50",
"unit": "PCS",
"quantity": "1432",
"unitPrice": "4.04955628615",
"amount": "5798.96",
"taxRate": "13%",
"tax": "753.87"
}],
"priInvoiceCode": "011001800204",
"priInvoiceNumber": "14662082",
"aftInvoiceCode": "011001800204",
"aftInvoiceNumber": "14662082",
"amountOCR": "30420.58",
"amountTaxOCR": "34375.26",
"invoiceForm": "发票联",
"redSeal": "1",
"oilMark": "0",
"invTaxSign": "1",
"tollSign": "0",
"administativeDivisionName": "北京市",
"invoiceType": 4,
"invoiceFormNum": "第二联",
"sealMark": "0",
"qrLists": {
"invoiceCode": "",
"invoiceNumber": "",
"billingDate": "",
"amount": "",
"checkCode": "",
"salesTaxNo": "",
"qrInfo": ""
},
"coord": {
"titleCoord": [480, 109, 749, 137, 746, 166, 478, 138],
"invoiceCodeCoord": [247, 105, 452, 123, 450, 149, 245, 131],
"invoiceNumberCoord": [809, 162, 950, 179, 948, 202, 807, 184],
"billingDateCoord": [935, 233, 1060, 246, 1059, 261, 934, 248],
"amountCoord": [786, 531, 905, 540, 903, 562, 784, 551],
"checkCodeCoord": [697, 594, 996, 621, 994, 647, 695, 619],
"purchaserNameCoord": [281, 193, 515, 219, 513, 237, 279, 210],
"purchaserTaxNoCoord": [298, 213, 525, 238, 523, 259, 296, 233],
"purchaserAddressPhoneCoord": [270, 237, 634, 281, 633, 294, 269, 250],
"purchaserBankCoord": [265, 258, 541, 291, 539, 309, 264, 277],
"salesNameCoord": [190, 544, 411, 567, 409, 587, 188, 563],
"salesTaxNoCoord": [213, 577, 481, 606, 479, 626, 211, 597],
"salesAddressPhoneCoord": [178, 605, 596, 649, 594, 666, 177, 622],
"salesBankAndNoCoord": [174, 628, 633, 675, 631, 691, 172, 644],
"amountTaxCNCoord": [341, 517, 593, 543, 591, 562, 340, 536],
"amountTaxCoord": [902, 580, 1032, 594, 1030, 618, 900, 604],
"taxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"receiverNameCoord": [95, 649, 162, 657, 160, 685, 92, 677],
"recheckNameCoord": [402, 682, 449, 687, 446, 713, 400, 708],
"drawerNameCoord": [679, 704, 746, 711, 743, 739, 676, 732],
"passwordFieldCoord": [719, 243, 1057, 283, 1062, 359, 714, 322],
"remarksCoord": [697, 590, 996, 621, 994, 650, 695, 618],
"invoiceListsCoord": [
[
[91, 279, 223, 298, 222, 316, 89, 297],
[359, 308, 390, 313, 387, 333, 357, 327],
[35, -20, 35, -20, 35, -20, 35, -20],
[493, 326, 523, 332, 521, 350, 490, 345],
[614, 343, 749, 357, 748, 374, 612, 359],
[835, 365, 897, 371, 895, 391, 833, 385],
[928, 375, 958, 378, 957, 396, 926, 392],
[1048, 388, 1099, 391, 1098, 408, 1047, 406]
],
[
[82, 301, 202, 316, 200, 334, 81, 319],
[357, 332, 460, 347, 459, 360, 356, 345],
[35, -20, 35, -20, 35, -20, 35, -20],
[489, 348, 521, 353, 519, 373, 487, 366],
[621, 367, 749, 380, 747, 395, 619, 382],
[834, 386, 899, 393, 897, 413, 833, 406],
[929, 396, 959, 399, 958, 418, 927, 414],
[1042, 408, 1103, 413, 1102, 430, 1041, 426]
],
[
[75, 321, 199, 336, 197, 357, 73, 342],
[351, 350, 454, 365, 452, 381, 350, 367],
[35, -20, 35, -20, 35, -20, 35, -20],
[486, 368, 518, 375, 516, 393, 484, 388],
[626, 388, 747, 400, 746, 417, 625, 404],
[860, 411, 898, 415, 896, 433, 858, 428],
[930, 416, 960, 420, 959, 439, 928, 436],
[1068, 431, 1107, 433, 1106, 452, 1066, 450]
],
[
[69, 342, 227, 361, 225, 382, 67, 363],
[346, 373, 378, 376, 376, 396, 344, 392],
[35, -20, 35, -20, 35, -20, 35, -20],
[484, 391, 515, 394, 513, 414, 482, 410],
[624, 408, 747, 421, 746, 436, 623, 423],
[844, 429, 901, 435, 899, 456, 842, 450],
[931, 438, 962, 441, 960, 461, 929, 458],
[1063, 451, 1109, 454, 1107, 473, 1062, 470]
],
[
[63, 363, 235, 381, 234, 401, 61, 382],
[342, 391, 392, 396, 391, 418, 340, 412],
[35, -20, 35, -20, 35, -20, 35, -20],
[481, 408, 511, 412, 510, 432, 479, 428],
[607, 427, 745, 442, 744, 456, 605, 442],
[829, 447, 902, 455, 900, 475, 828, 467],
[932, 458, 963, 461, 962, 479, 931, 476],
[1049, 467, 1112, 474, 1111, 495, 1047, 488]
],
[
[57, 384, 181, 397, 180, 417, 55, 403],
[338, 413, 430, 425, 428, 443, 337, 431],
[35, -20, 35, -20, 35, -20, 35, -20],
[478, 430, 510, 434, 508, 453, 476, 449],
[621, 448, 745, 461, 743, 476, 620, 463],
[845, 469, 902, 475, 900, 496, 843, 490],
[935, 478, 966, 481, 964, 501, 934, 498],
[1067, 492, 1114, 495, 1113, 514, 1066, 510]
],
[
[50, 407, 174, 418, 172, 435, 49, 424],
[334, 436, 374, 440, 373, 459, 332, 454],
[475, 451, 508, 454, 506, 474, 473, 471],
[628, 472, 639, 473, 638, 487, 627, 486],
[643, 471, 744, 483, 743, 499, 641, 487],
[853, 491, 903, 496, 901, 517, 851, 512],
[936, 500, 967, 503, 965, 523, 935, 519],
[1077, 515, 1118, 519, 1116, 537, 1075, 533]
],
[
[43, 425, 203, 442, 201, 462, 41, 445],
[329, 456, 361, 459, 360, 478, 328, 475],
[471, 470, 504, 476, 501, 495, 469, 490],
[601, 486, 638, 490, 637, 508, 599, 504],
[642, 492, 744, 503, 743, 519, 641, 508],
[837, 511, 904, 518, 902, 537, 835, 530],
[936, 521, 968, 522, 967, 543, 935, 542],
[1062, 532, 1119, 537, 1118, 559, 1061, 553]
]
],
"priInvoiceCodeCoord": [247, 105, 452, 123, 450, 149, 245, 131],
"priInvoiceNumberCoord": [809, 162, 950, 179, 948, 202, 807, 184],
"aftInvoiceCodeCoord": [986, 202, 1078, 211, 1077, 226, 985, 217],
"aftInvoiceNumberCoord": [988, 217, 1077, 226, 1075, 243, 987, 234],
"amountOCRCoord": [786, 531, 905, 540, 903, 562, 784, 551],
"amountTaxOCRCoord": [902, 580, 1032, 594, 1030, 618, 900, 604],
"invoiceFormCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"redSealCoord": [886, 620, 1144, 647, 1128, 838, 870, 810],
"oilMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invTaxSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"tollSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invoiceFormNumCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"sealMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"qrListsCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下,请重点关注:
参数名 | 类型 | 描述 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amount | string | 金额 |
checkCode | string | 校验码 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
purchaserAddressPhone | string | 购方地址电话 |
purchaserBank | string | 购方开户行账户 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddressPhone | string | 销方地址及电话 |
salesBankAndNo | string | 销方开户行及账户 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
tax | string | 税额 |
receiverName | string | 收款人 |
recheckName | string | 复核人 |
drawerName | string | 开票人 |
passwordField | string | 密码 |
remarks | string | 备注 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.specificationModel | string | 规格型号 |
invoiceLists.unit | string | 单位 |
invoiceLists.quantity | string | 数量 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
priInvoiceCode | string | 印刷发票代码 |
priInvoiceNumber | string | 印刷发票号码 |
aftInvoiceCode | string | 打印发票代码 |
aftInvoiceNumber | string | 打印发票号码 |
amountOCR | string | 不含税金额OCR |
amountTaxOCR | string | 票面金额OCR |
invoiceForm | string | 发票联 |
redSeal | string | 红章 |
oilMark | string | 成品油标志 |
invTaxSign | string | 代开标志 |
tollSign | string | 通行费标志 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
invoiceFormNum | string | 发票联次 |
sealMark | string | 销售方(章) |
qrLists | object | 二维码信息 |
qrLists.invoiceCode | string | 二维码信息-发票代码 |
qrLists.invoiceNumber | string | 二维码信息-发票号码 |
qrLists.billingDate | string | 二维码信息-开票日期 |
qrLists.amount | string | 二维码信息-金额 |
qrLists.checkCode | string | 二维码信息-校验码 |
qrLists.salesTaxNo | string | 二维码信息-销方税号 |
qrLists.qrInfo | string | 二维码信息-二维码信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountCoord | array | 金额坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.purchaserAddressPhoneCoord | array | 购方地址电话坐标 |
coord.purchaserBankCoord | array | 购方开户行账户坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressPhoneCoord | array | 销方地址及电话坐标 |
coord.salesBankAndNoCoord | array | 销方开户行及账户坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.taxCoord | array | 合计税额坐标 |
coord.receiverNameCoord | array | 收款人坐标 |
coord.recheckNameCoord | array | 复核坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.passwordFieldCoord | array | 密码坐标 |
coord.remarksCoord | array | 备注坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.priInvoiceCodeCoord | array | 印刷发票代码坐标 |
coord.priInvoiceNumberCoord | array | 印刷发票号码坐标 |
coord.aftInvoiceCodeCoord | array | 打印发票代码坐标 |
coord.aftInvoiceNumberCoord | array | 打印发票号码坐标 |
coord.amountOCRCoord | array | 票面金额OCR坐标 |
coord.amountTaxOCRCoord | array | 不含税金额OCR坐标 |
coord.invoiceFormCoord | array | 发票联坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.oilMarkCoord | array | 成品油标志坐标 |
coord.invTaxSignCoord | array | 代开标志坐标 |
coord.tollSignCoord | array | 通行费标志坐标 |
coord.invoiceFormNumCoord | array | 发票联次坐标 |
coord.sealMarkCoord | array | 销售方(章)坐标 |
coord.qrListsCoord | array | 二维码坐标 |
二、非税收入统一票据
{
"imgOrgsize": [1316, 1852],
"orientation": 0,
"region": [31, 19, 1824, 1316],
"regionFourPoint": [36, 35, 1819, 35, 1819, 1274, 36, 1274],
"regionFourPointOri": [36, 35, 1819, 35, 1819, 1274, 36, 1274],
"title": "上海市非税收沁通用票据(电子)机动车道路停车费收费",
"invoiceCode": "31010120",
"invoiceNumber": "6052355113",
"billingDate": "2020-08-05",
"amountTax": "40.00",
"amountTaxCN": "肆拾元整",
"checkCode": "3474a3",
"invoiceLists": [{
"commodityNo": "391001",
"commodityName": "机动车道路停车费收费",
"unit": "\u5143",
"quantity": "1",
"standard": "40.00",
"amount": "40.00"
}],
"purchaserName": "沪Fxxx79",
"recheckName": "厂",
"salesName": "收款单位",
"invoiceType": 34,
"coord": {
"titleCoord": [586, 144, 1293, 148, 1293, 196, 586, 192],
"invoiceCodeCoord": [167, 263, 411, 263, 411, 300, 167, 300],
"invoiceNumberCoord": [1174, 277, 1446, 270, 1447, 304, 1176, 311],
"billingDateCoord": [1173, 340, 1439, 340, 1439, 373, 1173, 373],
"amountTaxCoord": [174, 799, 493, 799, 493, 840, 174, 840],
"amountTaxCNCoord": [174, 799, 493, 799, 493, 840, 174, 840],
"checkCodeCoord": [1173, 307, 1362, 307, 1362, 345, 1173, 345],
"invoiceListsCoord": [
[169, 437, 273, 437, 273, 470, 169, 470],
[313, 434, 615, 434, 615, 472, 313, 472],
[806, 434, 848, 434, 848, 476, 806, 476],
[956, 442, 976, 442, 976, 472, 956, 472],
[1061, 439, 1145, 439, 1145, 472, 1061, 472],
[1337, 439, 1419, 439, 1419, 472, 1337, 472]
],
"purchaserNameCoord": [172, 331, 384, 333, 384, 365, 172, 363],
"recheckNameCoord": [1042, 1146, 1142, 1149, 1142, 1183, 1041, 1181],
"salesNameCoord": [169, 1154, 277, 1154, 277, 1186, 169, 1186]
}
}
payload.output_text_result.text 字段base64解码后信息如下,请重点关注:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amountTax | string | 票面金额 |
amountTaxCN | string | 票面金额大写 |
checkCode | string | 校验码 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityNo | string | 项目编码 |
invoiceLists.commodityName | string | 项目名称 |
invoiceLists.unit | string | 单位 |
invoiceLists.quantity | string | 数量 |
invoiceLists.standard | string | 标准 |
invoiceLists.amount | string | 金额(元) |
purchaserName | string | 交款人 |
recheckName | string | 复核人 |
salesName | string | 收款单位 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.amountTaxCNCoord | array | 票面金额大写坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.purchaserNameCoord | array | 交款人坐标 |
coord.recheckNameCoord | array | 复核坐标 |
coord.salesNameCoord | array | 收款单位坐标 |
三、出租车发票
{
"imgOrgsize": [501, 211],
"orientation": 0,
"region": [17, 17, 181, 470],
"regionFourPoint": [17, 17, 181, 17, 181, 470, 17, 470],
"regionFourPointOri": [17, 17, 181, 17, 181, 470, 17, 470],
"invoiceCode": "122001971881",
"invoiceNumber": "02642400",
"billingDate": "2020-05-19",
"amount": "545.00",
"timeGeton": "20:51",
"timeGetoff": "08:01",
"mileage": "146.5",
"licensePlate": "Y2674",
"province": "吉林省",
"city": "吉林省",
"administativeDivisionName": "吉林省",
"invoiceType": 25,
"coord": {
"invoiceCodeCoord": [70, 95, 169, 95, 169, 109, 70, 109],
"invoiceNumberCoord": [81, 116, 155, 117, 155, 130, 81, 129],
"billingDateCoord": [83, 278, 160, 278, 160, 293, 83, 293],
"amountCoord": [102, 373, 157, 371, 157, 385, 102, 387],
"timeGetonCoord": [91, 264, 161, 265, 161, 279, 91, 278],
"timeGetoffCoord": [91, 264, 161, 265, 161, 279, 91, 278],
"mileageCoord": [111, 310, 160, 309, 160, 323, 111, 325],
"licensePlateCoord": [127, 250, 160, 248, 161, 260, 127, 262]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amount | string | 金额 |
timeGeton | string | 上车时间 |
timeGetoff | string | 下车时间 |
mileage | string | 里程 |
licensePlate | string | 车牌号 |
province | string | 省份 |
city | string | 城市 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 乘车日期坐标 |
coord.amountCoord | array | 金额坐标 |
coord.timeGetonCoord | array | 上车时间坐标 |
coord.timeGetoffCoord | array | 下车时间坐标 |
coord.mileageCoord | array | 里程坐标 |
coord.licensePlateCoord | array | 车牌号坐标 |
四、船票
{
"imgOrgsize": [4670, 3502],
"orientation": 0,
"region": [38, 963, 3148, 4663],
"regionFourPoint": [38, 975, 3134, 963, 3148, 4651, 52, 4663],
"regionFourPointOri": [38, 975, 3134, 963, 3148, 4651, 52, 4663],
"qrLists": {
"qrInfo": "28775725"
},
"title": "珠海九洲港客运服务有限公司船票",
"billingDate": "2017-10-11",
"amountTax": "120.00",
"from": "九洲港",
"to": "蛇口港",
"billingTime": "12:00",
"invoiceCode": "144041770050",
"invoiceNumber": "00196708",
"name": "杨宇",
"administativeDivisionName": "广东省",
"invoiceType": 22,
"coord": {
"qrListsCoord": [924, 3685, 903, 4232, 287, 4206, 310, 3659],
"titleCoord": [617, 1132, 2525, 1107, 2527, 1286, 619, 1311],
"billingDateCoord": [822, 2373, 2284, 2364, 2281, 2511, 820, 2521],
"amountTaxCoord": [480, 2601, 1711, 2584, 1713, 2740, 482, 2757],
"fromCoord": [901, 2060, 2248, 2037, 2254, 2212, 908, 2240],
"toCoord": [901, 2060, 2248, 2037, 2254, 2212, 908, 2240],
"billingTimeCoord": [822, 2373, 2284, 2364, 2281, 2511, 820, 2521],
"invoiceCodeCoord": [1332, 1610, 2503, 1563, 2510, 1678, 1340, 1730],
"invoiceNumberCoord": [1322, 1783, 2124, 1757, 2129, 1886, 1328, 1911],
"nameCoord": [198, 3258, 825, 3272, 823, 3411, 196, 3401]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 二维码详情 |
title | string | 标题 |
billingDate | string | 开票日期 |
amountTax | string | 票面金额 |
from | string | 出发地 |
to | string | 到达地 |
billingTime | string | 开票时间 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
name | string | 乘客姓名 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.qrListsCoord | array | 二维码信息坐标 |
coord.titleCoord | array | 标题坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.fromCoord | array | 出发地坐标 |
coord.toCoord | array | 到达地坐标 |
coord.billingTimeCoord | array | 开票时间坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.nameCoord | array | 乘客姓名坐标 |
五、滴滴出行行程单
{
"imgOrgsize": [2320, 1651],
"orientation": 0,
"region": [86, 343, 1579, 1923],
"regionFourPoint": [86, 343, 1579, 343, 1579, 1923, 86, 1923],
"regionFourPointOri": [86, 343, 1579, 343, 1579, 1923, 86, 1923],
"title": "滴滴出行一行程单",
"amountTax": "745.57",
"billingDate": "2020-06-03",
"dateStart": "2020-05-05",
"dateEnd": "2020-05-30",
"phone": "1333xxx8518",
"invoiceType": 31,
"coord": {
"titleCoord": [568, 400, 1068, 404, 1066, 469, 566, 467],
"amountTaxCoord": [574, 720, 872, 720, 872, 749, 574, 749],
"billingDateCoord": [140, 678, 369, 674, 371, 702, 142, 704],
"dateStartCoord": [574, 674, 1001, 678, 999, 706, 572, 704],
"dateEndCoord": [574, 674, 1001, 678, 999, 706, 572, 704],
"phoneCoord": [142, 720, 432, 720, 432, 747, 142, 747]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
amountTax | string | 票面金额 |
billingDate | string | 申请日期 |
dateStart | string | 行程开始时间 |
dateEnd | string | 行程结束时间 |
phone | string | 行程人手机号 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.billingDateCoord | array | 申请日期坐标 |
coord.dateStartCoord | array | 行程开始时间坐标 |
coord.dateEndCoord | array | 行程结束时间坐标 |
coord.phoneCoord | array | 行程人手机号坐标 |
六、定额发票
{
"imgOrgsize": [2515, 3449],
"orientation": 0,
"region": [34, 84, 3255, 2425],
"regionFourPoint": [37, 84, 3255, 88, 3252, 2425, 34, 2421],
"regionFourPointOri": [37, 84, 3255, 88, 3252, 2425, 34, 2421],
"title": "四川通用*定额发票",
"invoiceCode": "15101195E001",
"invoiceNumber": "17802755",
"amount": "20.0",
"redSeal": "1",
"province": "四川省",
"city": "成都市",
"invoiceType": 23,
"coord": {
"titleCoord": [703, 292, 2192, 291, 2194, 509, 706, 510],
"invoiceCodeCoord": [978, 929, 2086, 917, 2086, 1080, 981, 1094],
"invoiceNumberCoord": [978, 1181, 1756, 1173, 1756, 1323, 978, 1334],
"amountCoord": [1008, 1646, 1941, 1615, 1946, 1868, 1012, 1898],
"redSealCoord": [1646, 886, 2837, 850, 2857, 1785, 1669, 1821]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
amount | string | 金额 |
redSeal | string | 红章 |
province | string | 省份 |
city | string | 城市 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.amountCoord | array | 金额坐标 |
coord.redSealCoord | array | 发票专用章坐标 |
七、二手车统一销售发票
{
"imgOrgsize": [822, 1144],
"orientation": 0,
"region": [59, 21, 1134, 795],
"regionFourPoint": [59, 21, 1134, 21, 1134, 795, 59, 795],
"regionFourPointOri": [59, 21, 1134, 21, 1134, 795, 59, 795],
"title": "二手车销售统一发票",
"invoiceCode": "034001900117",
"invoiceNumber": "01702299",
"billingDate": "2020-11-12",
"machineCode": "499948867106",
"purchaserName": "孙文",
"purchaserTaxNo": "340621198201030353",
"purchaserAddress": "安徽省濉溪县濉溪镇亚运村xxx号",
"purchaserPhone": "1585xxx5858",
"salesName": "赵忠义",
"salesTaxNo": "340621198205050810",
"salesAddress": "安徽省濉溪镇南关民主西巷xxxx号",
"salesPhone": "158xxx15252",
"carNumber": "1D38",
"registrationNumber": "370036832265",
"vehicleType": "小型轿车",
"vehicleNo": "LEv3A28V3K3836779",
"brandModel": "奥迪牌FV720xxxQCG",
"vehiclePlaceName": "淮北市车管所",
"amountTaxCN": "伍万圆整",
"amountTax": "50000.00",
"usedCarName": "淮北市百通二手车交易市场有限责任公司",
"usedCarTaxNo": "91340600678943045T",
"usedCarAddress": "安徽省淮北市矿山集街道办事处北东山外环西",
"usedCarbank": "中国银行股份有限公司淮北梅苑路支行1887xxx45226",
"usedCarPhone": "15705xxx887",
"redSeal": "1",
"invoiceForm": "发票联",
"invoiceFormNum": "第一联",
"aftInvoiceCode": "034001900117",
"aftInvoiceNumber": "01702299",
"administativeDivisionName": "安徽省",
"invoiceType": 15,
"qrLists": {
"qrInfo": ""
},
"coord": {
"titleCoord": [395, 68, 776, 65, 777, 109, 395, 112],
"invoiceCodeCoord": [871, 102, 1040, 93, 1040, 116, 871, 125],
"invoiceNumberCoord": [871, 131, 981, 125, 981, 149, 871, 154],
"billingDateCoord": [164, 155, 332, 148, 333, 167, 164, 175],
"machineCodeCoord": [252, 241, 384, 241, 384, 262, 252, 262],
"purchaserNameCoord": [339, 278, 371, 278, 371, 297, 339, 297],
"purchaserTaxNoCoord": [776, 278, 965, 275, 965, 293, 777, 297],
"purchaserAddressCoord": [341, 309, 556, 313, 556, 335, 341, 330],
"purchaserPhoneCoord": [828, 312, 953, 310, 953, 329, 828, 330],
"salesNameCoord": [341, 341, 391, 343, 390, 363, 341, 362],
"salesTaxNoCoord": [776, 345, 962, 345, 962, 363, 776, 363],
"salesAddressCoord": [343, 374, 563, 374, 563, 396, 343, 396],
"salesPhoneCoord": [825, 376, 952, 376, 952, 397, 825, 397],
"carNumberCoord": [385, 408, 430, 408, 430, 424, 385, 424],
"registrationNumberCoord": [563, 408, 677, 409, 677, 427, 563, 426],
"vehicleTypeCoord": [826, 410, 889, 410, 889, 429, 826, 429],
"vehicleNoCoord": [343, 432, 468, 432, 468, 450, 343, 450],
"brandModelCoord": [563, 439, 687, 439, 687, 457, 563, 457],
"vehiclePlaceNameCoord": [827, 441, 922, 442, 921, 462, 827, 460],
"amountTaxCNCoord": [386, 470, 449, 470, 449, 489, 386, 489],
"amountTaxCoord": [846, 473, 955, 473, 955, 494, 846, 494],
"usedCarNameCoord": [345, 590, 582, 590, 582, 611, 345, 611],
"usedCarTaxNoCoord": [674, 599, 855, 604, 855, 623, 674, 618],
"usedCarAddressCoord": [674, 631, 978, 639, 978, 660, 674, 652],
"usedCarbankCoord": [348, 657, 683, 662, 683, 684, 348, 678],
"usedCarPhoneCoord": [884, 672, 989, 675, 989, 690, 883, 687],
"redSealCoord": [362, 534, 542, 534, 542, 673, 362, 673],
"invoiceFormCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invoiceFormNumCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"aftInvoiceCodeCoord": [252, 180, 381, 177, 381, 200, 252, 203],
"aftInvoiceNumberCoord": [252, 210, 339, 210, 339, 229, 252, 229],
"qrListsCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
machineCode | string | 机器编码 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
purchaserAddress | string | 购方地址 |
purchaserPhone | string | 购方电话 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddress | string | 销方地址 |
salesPhone | string | 销方电话 |
carNumber | string | 车牌照号 |
registrationNumber | string | 登记证号 |
vehicleType | string | 车辆类型 |
vehicleNo | string | 车辆识别代号/车架号码 |
brandModel | string | 厂牌型号 |
vehiclePlaceName | string | 转入地车辆车管所名称 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
usedCarName | string | 二手车市场名称 |
usedCarTaxNo | string | 二手车市场纳税人识别号 |
usedCarAddress | string | 二手车市场地址 |
usedCarbank | string | 二手车市场开户银行及账号 |
usedCarPhone | string | 二手车市场电话 |
redSeal | string | 红章 |
invoiceForm | string | 发票联 |
invoiceFormNum | string | 发票联次 |
aftInvoiceCode | string | 打印发票代码 |
aftInvoiceNumber | string | 打印发票号码 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 二维码识别信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.machineCodeCoord | array | 机器编码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.purchaserAddressCoord | array | 购方地址坐标 |
coord.purchaserPhoneCoord | array | 购方电话坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressCoord | array | 销方地址坐标 |
coord.salesPhoneCoord | array | 销方电话坐标 |
coord.carNumberCoord | array | 车牌照号坐标 |
coord.registrationNumberCoord | array | 登记证号坐标 |
coord.vehicleTypeCoord | array | 车辆类型坐标 |
coord.vehicleNoCoord | array | 车辆识别代号/车架号码坐标 |
coord.brandModelCoord | array | 厂牌型号坐标 |
coord.vehiclePlaceNameCoord | array | 转入地车辆车管所名称坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.usedCarNameCoord | array | 二手车市场名称坐标 |
coord.usedCarTaxNoCoord | array | 二手车市场纳税人识别号坐标 |
coord.usedCarAddressCoord | array | 二手车市场地址坐标 |
coord.usedCarbankCoord | array | 二手车市场开户银行及账号坐标 |
coord.usedCarPhoneCoord | array | 二手车市场电话坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.invoiceFormCoord | array | 发票联坐标 |
coord.invoiceFormNumCoord | array | 发票联次坐标 |
coord.aftInvoiceCodeCoord | array | 机打代码坐标 |
coord.aftInvoiceNumberCoord | array | 机打号码坐标 |
coord.qrListsCoord | array | 二维码坐标 |
八、过路费发票
{
"imgOrgsize": [743, 979],
"orientation": 0,
"region": [43, 64, 845, 656],
"regionFourPoint": [43, 64, 845, 64, 845, 656, 43, 656],
"regionFourPointOri": [43, 64, 845, 64, 845, 656, 43, 656],
"title": "北京市税务局过路(过桥)费专用发票",
"invoiceCode": "111001971073",
"invoiceNumber": "08833677",
"billingDate": "2020-09-15",
"amountTax": "118.00",
"billingTime": "13:56:55",
"from": "北翟血站",
"to": "密码:",
"highwayFlag": "0",
"administativeDivisionName": "北京市",
"invoiceType": 28,
"coord": {
"titleCoord": [255, 122, 736, 147, 734, 177, 253, 152],
"invoiceCodeCoord": [329, 496, 571, 509, 570, 535, 328, 522],
"invoiceNumberCoord": [326, 532, 490, 541, 489, 569, 325, 560],
"billingDateCoord": [324, 454, 453, 461, 452, 485, 323, 478],
"amountTaxCoord": [343, 357, 416, 361, 415, 390, 341, 386],
"billingTimeCoord": [575, 468, 678, 473, 677, 499, 574, 494],
"fromCoord": [275, 254, 463, 272, 460, 305, 272, 287],
"toCoord": [510, 64, 572, 65, 572, 87, 510, 86],
"highwayFlagCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amountTax | string | 票面金额 |
billingTime | string | 开票时间 |
from | string | 出发地 |
to | string | 到达地 |
highwayFlag | string | 高速标志 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.billingTimeCoord | array | 开票时间坐标 |
coord.fromCoord | array | 入口坐标 |
coord.toCoord | array | 出口坐标 |
coord.highwayFlagCoord | array | 高速标志坐标 |
九、海关专用缴款书
{
"imgOrgsize": [660, 936],
"orientation": 0,
"region": [2, 1, 935, 658],
"regionFourPoint": [2, 1, 935, 1, 935, 658, 2, 658],
"regionFourPointOri": [2, 1, 935, 1, 935, 658, 2, 658],
"title": "海关进口关税",
"revenueSys": "海关系统",
"billingDate": "2018年10月23日",
"customsNo": "No231420181148313378-A01",
"revenueOrg": "中央金库",
"corporateName": "飞利浦医疗(苏州)有限公司",
"subject": "进口关税",
"budgetLevel": "中央",
"corporateAccountNo": "1102020619000690131",
"invoiceLists": [{
"dutyNo": "9018139000",
"commodityName": "磁共振成像装置用前端接口组件",
"quantity": "4.00",
"unit": "\u4e2a",
"taxPaid": "253267.00",
"taxRate": "",
"tax": "10130.68"
}],
"amountTaxCN": "壹万零壹佰叁拾元陆角捌分",
"amountTax": "10130.68",
"corporateNo": "3205980023",
"customsBillNo": "231420181148313378",
"contractNo": "4500766346",
"endTime": "2018年11月7日前",
"invoiceType": 35,
"qrLists": {
"qrInfo": "CTS"
},
"coord": {
"titleCoord": [233, 27, 410, 27, 410, 62, 233, 62],
"revenueSysCoord": [44, 76, 187, 76, 187, 95, 44, 95],
"billingDateCoord": [286, 76, 478, 76, 478, 98, 286, 98],
"customsNoCoord": [626, 78, 876, 81, 876, 102, 626, 99],
"revenueOrgCoord": [127, 100, 196, 100, 196, 120, 127, 120],
"corporateNameCoord": [574, 101, 770, 101, 770, 119, 574, 119],
"subjectCoord": [125, 136, 193, 136, 193, 156, 125, 156],
"budgetLevelCoord": [316, 137, 354, 137, 354, 160, 316, 160],
"corporateAccountNoCoord": [568, 143, 727, 143, 727, 158, 568, 158],
"invoiceListsCoord": [
[9, 247, 112, 247, 112, 265, 9, 265],
[125, 247, 358, 248, 358, 270, 125, 268],
[418, 250, 452, 250, 452, 265, 418, 265],
[506, 246, 526, 246, 526, 269, 506, 269],
[577, 249, 664, 249, 664, 267, 577, 267],
[2, 1, 2, 1, 2, 1, 2, 1],
[810, 249, 887, 249, 887, 269, 810, 269]
],
"amountTaxCNCoord": [168, 397, 367, 397, 367, 416, 168, 416],
"amountTaxCoord": [734, 400, 810, 400, 810, 416, 734, 416],
"corporateNoCoord": [116, 428, 203, 428, 203, 447, 116, 447],
"customsBillNoCoord": [395, 432, 546, 432, 546, 447, 395, 447],
"contractNoCoord": [116, 465, 203, 465, 203, 484, 116, 484],
"endTimeCoord": [114, 504, 244, 504, 244, 526, 114, 526],
"qrListsCoord": [911, 8, 911, 79, 837, 80, 835, 9]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
revenueSys | string | 收入系统 |
billingDate | string | 开票日期 |
customsNo | string | 号码 |
revenueOrg | string | 收入机关 |
corporateName | string | 缴款单位名称 |
subject | string | 科目 |
budgetLevel | string | 预算级次 |
corporateAccountNo | string | 缴款单位账号 |
invoiceLists | array | 明细列表 |
invoiceLists.dutyNo | string | 税号 |
invoiceLists.commodityName | string | 货物名称 |
invoiceLists.quantity | string | 数量 |
invoiceLists.unit | string | 单位 |
invoiceLists.taxPaid | string | 完税价格 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
corporateNo | string | 申请单位编号 |
customsBillNo | string | 报关单编号 |
contractNo | string | 合同(批文)号 |
endTime | string | 缴款期限 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 二维码识别信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.revenueSysCoord | array | 收入系统坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.customsNoCoord | array | 号码坐标 |
coord.revenueOrgCoord | array | 收入机关坐标 |
coord.corporateNameCoord | array | 缴款单位名称坐标 |
coord.subjectCoord | array | 科目坐标 |
coord.budgetLevelCoord | array | 预算级次坐标 |
coord.corporateAccountNoCoord | array | 缴款单位账号坐标 |
coord.invoiceListsCoord | array | 发票列表坐标 |
coord.amountTaxCNCoord | array | 票面金额大写坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.corporateNoCoord | array | 申请单位编号坐标 |
coord.customsBillNoCoord | array | 报关单编号坐标 |
coord.contractNoCoord | array | 合同(批文)号坐标 |
coord.endTimeCoord | array | 缴款期限坐标 |
coord.qrListsCoord | array | 二维码列表坐标 |
十、火车票
{
"imgOrgsize": [544, 829],
"orientation": 0,
"region": [61, 50, 753, 481],
"regionFourPoint": [61, 50, 753, 50, 753, 481, 61, 481],
"regionFourPointOri": [61, 50, 753, 50, 753, 481, 61, 481],
"number": "F063344",
"trainNumber": "G374",
"from": "德惠西站",
"to": "长春西站",
"seat": "二等座",
"name": "初靖阳",
"billingDate": "2021-03-30",
"amount": "38.5",
"billingTime": "15:50",
"carriageNumber": "03车04B号",
"userCardNo": "2206811996****2312",
"salestation": "德惠西售",
"serialNumber": "53478300520331F063344",
"invoiceType": 20,
"coord": {
"numberCoord": [109, 69, 265, 70, 264, 107, 108, 106],
"trainNumberCoord": [352, 118, 456, 119, 455, 160, 351, 160],
"fromCoord": [126, 106, 308, 108, 308, 159, 125, 157],
"toCoord": [485, 188, 620, 189, 620, 221, 484, 219],
"seatCoord": [546, 218, 642, 219, 642, 260, 546, 259],
"nameCoord": [105, 325, 491, 329, 490, 360, 104, 356],
"billingDateCoord": [103, 185, 429, 188, 428, 218, 102, 215],
"amountCoord": [105, 218, 222, 220, 222, 255, 105, 254],
"billingTimeCoord": [103, 185, 429, 188, 428, 218, 102, 215],
"carriageNumberCoord": [485, 188, 620, 189, 620, 221, 484, 219],
"userCardNoCoord": [105, 325, 491, 329, 490, 360, 104, 356],
"salestationCoord": [109, 435, 495, 442, 494, 468, 108, 462],
"serialNumberCoord": [109, 435, 495, 442, 494, 468, 108, 462]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
number | string | 编号 |
trainNumber | string | 车次 |
from | string | 出发地 |
to | string | 到达地 |
seat | string | 座位类型 |
name | string | 乘客姓名 |
billingDate | string | 开票日期 |
amount | string | 金额 |
billingTime | string | 开票时间 |
carriageNumber | string | 座位号 |
userCardNo | string | 乘客证件号码 |
salestation | string | 发售车站 |
serialNumber | string | 序列号 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.numberCoord | array | 编号坐标 |
coord.trainNumberCoord | array | 车次坐标 |
coord.fromCoord | array | 出发地坐标 |
coord.toCoord | array | 到达地坐标 |
coord.seatCoord | array | 座位类型坐标 |
coord.nameCoord | array | 乘客姓名坐标 |
coord.billingDateCoord | array | 乘车日期坐标 |
coord.amountCoord | array | 票面金额坐标 |
coord.billingTimeCoord | array | 乘车时间坐标 |
coord.carriageNumberCoord | array | 座位号坐标 |
coord.userCardNoCoord | array | 乘客证件号码坐标 |
coord.salestationCoord | array | 发售车站坐标 |
coord.serialNumberCoord | array | 序列号坐标 |
十一、货物清单
{
"imgOrgsize": [1246, 1562],
"orientation": 0,
"region": [116, 122, 1506, 1179],
"regionFourPoint": [116, 127, 1503, 122, 1506, 1174, 119, 1179],
"regionFourPointOri": [116, 127, 1503, 122, 1506, 1174, 119, 1179],
"title": "销售货物或提供应税劳务清单",
"invoiceCode": "3200183160",
"invoiceNumber": "02257108",
"purchaserName": "沪士电子股份有限公司",
"salesName": "无锡市联创科技有限公司",
"billingDate": "2019-01-14",
"administativeDivisionName": "江苏省",
"invoiceType": 33,
"coord": {
"titleCoord": [606, 175, 985, 179, 984, 206, 604, 205],
"invoiceCodeCoord": [167, 300, 488, 304, 486, 326, 165, 324],
"invoiceNumberCoord": [871, 308, 1013, 307, 1013, 330, 871, 331],
"purchaserNameCoord": [167, 227, 455, 229, 453, 252, 167, 251],
"salesNameCoord": [168, 265, 472, 264, 472, 288, 168, 289],
"billingDateCoord": [1171, 999, 1398, 998, 1398, 1021, 1171, 1022]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
purchaserName | string | 购方名称 |
salesName | string | 销方名称 |
billingDate | string | 开票日期 |
administativeDivisionName | string | 行政区划名称 |
invoiceType | int | 发票类型 |
coord | object | 坐标 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
十二、机动车销售统一发票
{
"imgOrgsize": [1200, 1600],
"orientation": 0,
"region": [40, 1, 1592, 1182],
"regionFourPoint": [40, 1, 1592, 1, 1592, 1182, 40, 1182],
"regionFourPointOri": [40, 1, 1592, 1, 1592, 1182, 40, 1182],
"title": "机动车销售统一发票",
"invoiceCode": "141001920076",
"invoiceNumber": "03448046",
"billingDate": "2020-08-31",
"machineCode": "589912066883",
"taxControlCode": "0364>1>4*898/-4+>79+0+28*6->0-12-1*37<20->87770--9780510066-+3392/8/7-0+121/<<<2/6<75+5-560+<<<2/6<75+5-5689-/*05>/84495-288<*9101/43+925><-33*+--/3218-5*917>70+/1917<93*+89>*/400137940458/>",
"purchaserName": "刘永*",
"idCardNo": "410182198402063315",
"vehicleType": "轿车",
"brandModel": "YQZ7151AE6",
"originPlace": "盐城市",
"certificateNo": "WBX090005523171",
"engineNo": "L1043152",
"vehicleNo": "LJD5AA1D2L0038231",
"amountTaxCN": "玖万捌仟圆整",
"amountTax": "98000.00",
"salesName": "河南坤航汽车销售服务有限公司",
"salesPhone": "0371-69991188",
"salesTaxNo": "91410183MA46TF6M7D",
"salesNo": "16023701040008860",
"salesAddress": "河南省新密市赵坡新村东五百米路南",
"salesBank": "中国农业银行股份有限公司新密市西大街支行",
"taxRate": "13%",
"totalTax": "11274.34",
"taxAuthorityName": "国家税务总局新密市税务局来集税务所",
"taxAuthorityNo": "14101837600",
"amount": "86725.66",
"passengersLimited": "5",
"drawerName": "马小娜",
"remarks": "一车一票",
"redSeal": "1",
"invoiceForm": "发票联",
"invoiceFormNum": "第一联",
"aftInvoiceCode": "141001920076",
"aftInvoiceNumber": "03448046",
"administativeDivisionName": "河南省",
"invoiceType": 3,
"qrLists": {
"qrInfo": "01,03,141001920076,03448046,86725.66,20200831,,6CE6,"
},
"coord": {
"titleCoord": [573, 80, 1152, 64, 1152, 115, 574, 131],
"invoiceCodeCoord": [1300, 128, 1521, 127, 1522, 165, 1301, 167],
"invoiceNumberCoord": [1301, 167, 1452, 167, 1453, 201, 1301, 202],
"billingDateCoord": [331, 213, 506, 208, 506, 241, 332, 246],
"machineCodeCoord": [428, 386, 628, 381, 629, 409, 429, 414],
"taxControlCodeCoord": [857, 259, 1490, 245, 1488, 399, 862, 416],
"purchaserNameCoord": [410, 467, 483, 465, 483, 496, 411, 498],
"idCardNoCoord": [429, 507, 729, 497, 729, 525, 429, 535],
"vehicleTypeCoord": [420, 556, 467, 555, 468, 584, 421, 585],
"brandModelCoord": [810, 548, 926, 543, 927, 568, 810, 573],
"originPlaceCoord": [1319, 528, 1393, 526, 1394, 563, 1320, 565],
"certificateNoCoord": [420, 618, 599, 613, 599, 641, 421, 646],
"engineNoCoord": [424, 677, 519, 674, 520, 698, 425, 700],
"vehicleNoCoord": [1129, 657, 1405, 650, 1405, 677, 1129, 685],
"amountTaxCNCoord": [456, 734, 633, 729, 633, 762, 456, 767],
"amountTaxCoord": [1257, 711, 1420, 705, 1421, 739, 1258, 744],
"salesNameCoord": [429, 793, 750, 783, 751, 815, 429, 826],
"salesPhoneCoord": [1159, 771, 1309, 767, 1310, 795, 1160, 798],
"salesTaxNoCoord": [434, 855, 729, 847, 729, 874, 435, 882],
"salesNoCoord": [1160, 832, 1355, 826, 1355, 854, 1161, 859],
"salesAddressCoord": [436, 917, 797, 908, 797, 934, 436, 944],
"salesBankCoord": [1049, 898, 1450, 885, 1450, 912, 1050, 926],
"taxRateCoord": [436, 981, 486, 980, 486, 1009, 436, 1010],
"totalTaxCoord": [724, 972, 887, 967, 887, 1000, 724, 1005],
"taxAuthorityNameCoord": [1103, 943, 1478, 930, 1478, 958, 1103, 971],
"taxAuthorityNoCoord": [1108, 976, 1286, 970, 1286, 998, 1109, 1004],
"amountCoord": [500, 1044, 671, 1040, 672, 1079, 501, 1083],
"passengersLimitedCoord": [1421, 1014, 1441, 1013, 1441, 1040, 1422, 1040],
"drawerNameCoord": [884, 1090, 951, 1088, 951, 1113, 884, 1115],
"remarksCoord": [1274, 1072, 1372, 1066, 1373, 1097, 1274, 1103],
"redSealCoord": [811, 701, 1064, 695, 1068, 902, 815, 909],
"invoiceFormCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invoiceFormNumCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"aftInvoiceCodeCoord": [422, 292, 624, 286, 624, 314, 422, 320],
"aftInvoiceNumberCoord": [423, 337, 561, 332, 561, 366, 423, 370],
"qrListsCoord": [355, 84, 355, 197, 240, 197, 240, 85]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
machineCode | string | 机器编码 |
taxControlCode | string | 税控码 |
purchaserName | string | 购方名称 |
idCardNo | string | 身份证号码/组织机构代码 |
vehicleType | string | 车辆类型 |
brandModel | string | 厂牌型号 |
originPlace | string | 产地 |
certificateNo | string | 合格证号 |
engineNo | string | 发动机号 |
vehicleNo | string | 车辆识别代号/车架号码 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
salesName | string | 销方名称 |
salesPhone | string | 销方电话 |
salesTaxNo | string | 销方税号 |
salesNo | string | 销方开户行账号 |
salesAddress | string | 销方地址 |
salesBank | string | 销方开户银行 |
taxRate | string | 税率 |
totalTax | string | 合计税额 |
taxAuthorityName | string | 主管税务名称 |
taxAuthorityNo | string | 主管税务机关 |
amount | string | 金额 |
passengersLimited | string | 限乘人数 |
drawerName | string | 开票人 |
remarks | string | 备注 |
redSeal | string | 红章 |
invoiceForm | string | 发票联次 |
invoiceFormNum | string | 发票联数 |
aftInvoiceCode | string | 机打代码 |
aftInvoiceNumber | string | 机打号码 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 二维码详情信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.machineCodeCoord | array | 机器编码坐标 |
coord.taxControlCodeCoord | array | 税控码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.idCardNoCoord | array | 身份证号码/组织机构代码坐标 |
coord.vehicleTypeCoord | array | 车辆类型坐标 |
coord.brandModelCoord | array | 厂牌型号坐标 |
coord.originPlaceCoord | array | 产地坐标 |
coord.certificateNoCoord | array | 合格证号坐标 |
coord.engineNoCoord | array | 发动机号坐标 |
coord.vehicleNoCoord | array | 车辆识别代号/车架号码坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesPhoneCoord | array | 销方电话坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesNoCoord | array | 销方编号坐标 |
coord.salesAddressCoord | array | 销方地址坐标 |
coord.salesBankCoord | array | 销方开户银行坐标 |
coord.taxRateCoord | array | 税率坐标 |
coord.totalTaxCoord | array | 合计税额坐标 |
coord.taxAuthorityNameCoord | array | 主管税务名称坐标 |
coord.taxAuthorityNoCoord | array | 主管税务机关坐标 |
coord.amountCoord | array | 金额坐标 |
coord.passengersLimitedCoord | array | 限乘人数坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.remarksCoord | array | 备注坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.invoiceFormCoord | array | 发票联坐标 |
coord.invoiceFormNumCoord | array | 发票联次坐标 |
coord.aftInvoiceCodeCoord | array | 机打代码坐标 |
coord.aftInvoiceNumberCoord | array | 机打号码坐标 |
coord.qrListsCoord | array | QR信息列表坐标 |
十三、航空运输电子客票行程单
{
"imgOrgsize": [1019, 2080],
"orientation": 0,
"region": [0, 0, 2080, 1019],
"regionFourPoint": [105, 6, 2077, 6, 2077, 1009, 105, 1009],
"regionFourPointOri": [105, 6, 2077, 6, 2077, 1009, 105, 1009],
"title": "航空运输电子客票行程单",
"name": "宋方常",
"billingDate": "2019-08-03",
"amountTax": "560.00",
"printNumber": "29323913846",
"eticketNumber": "1782145503564",
"userCardNo": "510304195404150019",
"flights": [{
"from": "重庆",
"to": "南京",
"seat": "E",
"date": "2019-02-03",
"time": "11:30",
"carrier": "深航",
"flightNumber": "ZH9463",
"fareBasis": "1",
"notValidBefore": "03FEB",
"notValidAfter": "",
"allow": "20K"
}],
"amount": "510.00",
"fuelSurcharge": "EXEMPT",
"caacDevelopmentFund": "50.00",
"agentcode": "SZH888",
"insurance": "XXX",
"endorsement": "TB:智老先行不得签转",
"invoiceType": 27,
"qrLists": {
"printNumber": "2932391384 6",
"qrInfo": ""
},
"coord": {
"titleCoord": [837, 40, 1351, 44, 1350, 101, 837, 96],
"nameCoord": [359, 214, 478, 218, 475, 263, 356, 256],
"billingDateCoord": [1671, 868, 1913, 873, 1912, 907, 1670, 902],
"amountTaxCoord": [1660, 737, 1802, 745, 1799, 779, 1656, 774],
"printNumberCoord": [1577, 116, 1972, 122, 1971, 167, 1576, 160],
"eticketNumberCoord": [396, 751, 687, 747, 689, 791, 398, 793],
"userCardNoCoord": [686, 222, 1136, 229, 1136, 269, 686, 261],
"flightsCoord": [
[
[371, 384, 450, 385, 450, 429, 371, 429],
[366, 468, 451, 469, 450, 511, 365, 510],
[902, 395, 931, 395, 931, 432, 902, 432],
[946, 395, 1175, 399, 1175, 436, 946, 432],
[1196, 400, 1307, 402, 1307, 436, 1196, 434],
[643, 385, 873, 388, 873, 442, 643, 438],
[643, 385, 873, 388, 873, 442, 643, 438],
[1351, 412, 1373, 412, 1373, 434, 1351, 434],
[1598, 405, 1715, 407, 1715, 445, 1598, 443],
[],
[1893, 407, 1971, 409, 1971, 452, 1893, 450]
]
],
"amountCoord": [683, 722, 802, 715, 803, 749, 684, 756],
"fuelSurchargeCoord": [1189, 730, 1330, 732, 1329, 768, 1188, 766],
"caacDevelopmentFundCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"agentcodeCoord": [395, 833, 534, 837, 534, 883, 394, 876],
"insuranceCoord": [1843, 781, 1918, 783, 1917, 825, 1842, 823],
"endorsementCoord": [1327, 223, 1755, 227, 1754, 285, 1327, 280],
"qrListsCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
name | string | 乘客姓名 |
billingDate | string | 开票日期 |
amountTax | string | 票面金额 |
printNumber | string | 印刷序号 |
eticketNumber | string | 电子客票号码 |
userCardNo | string | 乘客证件号码 |
flights | array | 航班信息 |
flights.from | string | 出发地 |
flights.to | string | 到达地 |
flights.seat | string | 座位类型 |
flights.date | string | 日期 |
flights.time | string | 时间 |
flights.carrier | string | 承运人 |
flights.flightNumber | string | 航班号 |
flights.fareBasis | string | 客票级别 |
flights.notValidBefore | string | 客票生效日期 |
flights.notValidAfter | string | 有效截至日期 |
flights.allow | string | 免费行李标记 |
amount | string | 金额 |
fuelSurcharge | string | 燃油附加费 |
caacDevelopmentFund | string | 民航发展基金 |
agentcode | string | 销售单位代号 |
insurance | string | 保险费 |
endorsement | string | 签注 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.printNumber | string | 打印序号 |
qrLists.qrInfo | string | 二维码详情信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.nameCoord | array | 乘客姓名坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountTaxCoord | array | 合计金额坐标 |
coord.printNumberCoord | array | 印刷序号坐标 |
coord.eticketNumberCoord | array | 电子客票号码坐标 |
coord.userCardNoCoord | array | 乘客证件号码坐标 |
coord.flightsCoord | array | 航班信息坐标 |
coord.amountCoord | array | 票价坐标 |
coord.fuelSurchargeCoord | array | 燃油附加费坐标 |
coord.caacDevelopmentFundCoord | array | 民航发展基金坐标 |
coord.agentcodeCoord | array | 销售单位代号坐标 |
coord.insuranceCoord | array | 保险费坐标 |
coord.endorsementCoord | array | 签注坐标 |
coord.qrListsCoord | array | 二维码坐标 |
十四、增值税普通发票(卷式)
{
"imgOrgsize": [2736, 3648],
"orientation": 0,
"region": [902, 606, 2220, 2735],
"regionFourPoint": [902, 782, 1841, 606, 2220, 2632, 1281, 2735],
"regionFourPointOri": [902, 782, 1841, 606, 2220, 2632, 1281, 2735],
"title": "江西增值税普通发票",
"invoiceCode": "036001800107",
"invoiceNumber": "16831857",
"billingDate": "2020-09-19",
"salesName": "萍乡市安源区山水田园餐厅",
"salesTaxNo": "36030219850326451601",
"purchaserName": "济川药业集团有限公司",
"purchaserTaxNo": "913212831411793163",
"amountTax": "755.00",
"checkCode": "09014725871570583178",
"redSeal": "1",
"invoiceLists": [{
"commodityName": "*餐饮服务*餐饮服务",
"unitPrice": "756.00",
"quantity": "1.00",
"amount": "755.00"
}],
"aftInvoiceNumber": "16831857",
"machineCode": "499937328123",
"administativeDivisionName": "江西省",
"invoiceType": 11,
"qrLists": {
"invoiceCode": "036001800107",
"invoiceNumber": "16831857",
"checkCode": "",
"qrInfo": "01,11,036001800107,16831857,,,,F417"
},
"coord": {
"titleCoord": [1036, 869, 1678, 724, 1689, 779, 1049, 924],
"invoiceCodeCoord": [1040, 1147, 1591, 1024, 1601, 1068, 1049, 1190],
"invoiceNumberCoord": [1218, 1170, 1479, 1109, 1487, 1148, 1226, 1209],
"billingDateCoord": [1273, 1424, 1421, 1391, 1427, 1417, 1278, 1450],
"salesNameCoord": [1264, 1271, 1595, 1198, 1313, 1392, 1109, 1437],
"salesTaxNoCoord": [1319, 1363, 1623, 1296, 1629, 1325, 1325, 1392],
"purchaserNameCoord": [1310, 1462, 1585, 1401, 1591, 1435, 1317, 1495],
"purchaserTaxNoCoord": [1363, 1554, 1638, 1493, 1645, 1521, 1368, 1580],
"amountTaxCoord": [1327, 2423, 1638, 2361, 1646, 2397, 1335, 2459],
"checkCodeCoord": [1352, 2518, 1782, 2431, 1788, 2464, 1359, 2552],
"redSealCoord": [1311, 1711, 1771, 1609, 1847, 1960, 1386, 2060],
"invoiceListsCoord": [
[1180, 1671, 1406, 1622, 1414, 1657, 1188, 1707],
[1425, 1623, 1519, 1602, 1526, 1633, 1431, 1654],
[1590, 1587, 1656, 1572, 1663, 1604, 1597, 1618],
[1711, 1558, 1807, 1536, 1814, 1569, 1718, 1591]
],
"aftInvoiceNumberCoord": [1226, 1236, 1351, 1207, 1356, 1237, 1232, 1264],
"machineCodeCoord": [1604, 1151, 1792, 1110, 1798, 1139, 1610, 1180],
"qrListsCoord": [1566, 2560, 1598, 2700, 1458, 2730, 1427, 2590]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
amountTax | string | 票面金额 |
checkCode | string | 校验码 |
redSeal | string | 红章 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.quantity | string | 数量 |
invoiceLists.amount | string | 金额 |
aftInvoiceNumber | string | 机打号码 |
machineCode | string | 机器编码 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.invoiceCode | string | 发票代码 |
qrLists.invoiceNumber | string | 发票号码 |
qrLists.checkCode | string | 校验码 |
qrLists.qrInfo | string | 二维码识别信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.aftInvoiceNumberCoord | array | 机打号码坐标 |
coord.machineCodeCoord | array | 机器编码坐标 |
coord.qrListsCoord | array | 二维码坐标 |
十五、客运汽车
{
"imgOrgsize": [3648, 2736],
"orientation": 0,
"region": [345, 1094, 1590, 1889],
"regionFourPoint": [348, 1094, 1590, 1099, 1587, 1889, 345, 1884],
"regionFourPointOri": [348, 1094, 1590, 1099, 1587, 1889, 345, 1884],
"title": "江苏有旅客运输专用发票",
"invoiceCode": "132121981313",
"invoiceNumber": "08994263",
"billingDate": "2020-09-07",
"amountTax": "135.00",
"name": "梅杰",
"userCardNo": "321283********6433",
"from": "泰兴",
"to": "禄口机场",
"billingTime": "00:30",
"trainNumber": "DZ0002",
"administativeDivisionName": "江苏省",
"invoiceType": 26,
"coord": {
"titleCoord": [523, 1203, 1037, 1220, 1036, 1267, 522, 1249],
"invoiceCodeCoord": [1294, 1330, 1584, 1316, 1585, 1352, 1294, 1367],
"invoiceNumberCoord": [1311, 1387, 1535, 1378, 1536, 1421, 1312, 1430],
"billingDateCoord": [468, 1679, 761, 1693, 760, 1730, 468, 1716],
"amountTaxCoord": [828, 1553, 933, 1554, 933, 1595, 828, 1594],
"nameCoord": [557, 1360, 651, 1364, 650, 1416, 556, 1412],
"userCardNoCoord": [812, 1382, 1170, 1379, 1170, 1415, 812, 1418],
"fromCoord": [504, 1535, 591, 1540, 590, 1585, 503, 1581],
"toCoord": [638, 1540, 803, 1547, 802, 1598, 637, 1591],
"billingTimeCoord": [468, 1679, 761, 1693, 760, 1730, 468, 1716],
"trainNumberCoord": [799, 1695, 921, 1700, 920, 1735, 799, 1730]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amountTax | string | 票面金额 |
name | string | 乘客姓名 |
userCardNo | string | 乘客证件号码 |
from | string | 出发地 |
to | string | 到达地 |
billingTime | string | 开票时间 |
trainNumber | string | 车次 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.nameCoord | array | 乘客姓名坐标 |
coord.userCardNoCoord | array | 乘客证件号码坐标 |
coord.fromCoord | array | 出发地坐标 |
coord.toCoord | array | 到达地坐标 |
coord.billingTimeCoord | array | 开票时间坐标 |
coord.trainNumberCoord | array | 车次坐标 |
十六、区块链发票
{
"imgOrgsize": [792, 1219],
"orientation": 0,
"region": [0, 0, 1219, 792],
"regionFourPoint": [1, 4, 1208, 4, 1208, 778, 1, 778],
"regionFourPointOri": [1, 4, 1208, 4, 1208, 778, 1, 778],
"qrLists": {
"invoiceCode": "",
"invoiceNumber": "",
"billingDate": "",
"amount": "",
"checkCode": "",
"salesTaxNo": "",
"qrInfo": "https://bcfp.shenzhen.chinatax.gov.cn/verify/scan?hash=006f06a314f84f06a4c02c6f93fe68db0f4756cdd87406cd651668bea18f79df37&bill_num=03875648&total_amount=400"
},
"title": "深圳电子普通发票",
"invoiceCode": "144032009110",
"invoiceNumber": "03875648",
"billingDate": "2020-04-03",
"amount": "3.88",
"checkCode": "9df37",
"purchaserName": "北京中安未来科技有限公司",
"purchaserTaxNo": "91110xxx58348618H",
"salesName": "港铁轨道交通(深圳)有限公司",
"salesTaxNo": "9144030xxx76399061",
"salesAddressPhone": "深圳市龙华区大浪街道和平路xxxx号港铁(深圳)总部大楼9楼0755-29xxx184",
"salesBankAndNo": "中信银行深圳分行营业部7441010xxx00007378",
"amountTaxCN": "肆元整",
"amountTax": "4.00",
"tax": "0.12",
"receiverName": "港铁深圳",
"recheckName": "港铁深圳",
"drawerName": "港铁深圳",
"passwordField": "006f06a314f84f06a4cxxxxf93fe68db0f4756cdd874",
"invoiceLists": [{
"commodityName": "*运输服务*城市轨道交通服务",
"specificationModel": "",
"unit": "",
"quantity": "1",
"unitPrice": "3.88",
"amount": "3.88",
"taxRate": "3%",
"tax": "0.12"
}],
"priInvoiceCode": "144032009110",
"priInvoiceNumber": "03875648",
"aftInvoiceCode": "144032009110",
"aftInvoiceNumber": "03875648",
"amountOCR": "3.88",
"amountTaxOCR": "4.00",
"redSeal": "1",
"oilMark": "0",
"invTaxSign": "1",
"tollSign": "0",
"sealMark": "1",
"administativeDivisionName": "广东省",
"invoiceType": 21,
"coord": {
"qrListsCoord": [92, 24, 219, 24, 219, 150, 92, 150],
"titleCoord": [455, 45, 778, 45, 778, 84, 455, 84],
"invoiceCodeCoord": [868, 23, 1046, 23, 1046, 43, 868, 43],
"invoiceNumberCoord": [870, 55, 1016, 55, 1016, 75, 870, 75],
"billingDateCoord": [950, 92, 1101, 92, 1101, 106, 950, 106],
"amountCoord": [898, 512, 950, 512, 950, 533, 898, 533],
"checkCodeCoord": [949, 123, 992, 123, 992, 139, 949, 139],
"purchaserNameCoord": [177, 170, 397, 170, 397, 191, 177, 191],
"purchaserTaxNoCoord": [202, 202, 348, 202, 348, 216, 202, 216],
"salesNameCoord": [177, 587, 428, 587, 428, 607, 177, 607],
"salesTaxNoCoord": [99, 615, 347, 615, 347, 635, 99, 635],
"salesAddressPhoneCoord": [99, 643, 679, 643, 679, 661, 99, 661],
"salesBankAndNoCoord": [52, 665, 73, 665, 73, 686, 52, 686],
"amountTaxCNCoord": [354, 547, 434, 551, 433, 575, 353, 570],
"amountTaxCoord": [895, 551, 1001, 551, 1001, 573, 895, 573],
"taxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"receiverNameCoord": [65, 708, 196, 708, 196, 733, 65, 733],
"recheckNameCoord": [329, 710, 440, 710, 440, 731, 329, 731],
"drawerNameCoord": [591, 710, 719, 710, 719, 731, 591, 731],
"passwordFieldCoord": [762, 187, 1153, 187, 1153, 233, 762, 233],
"invoiceListsCoord": [
[48, 324, 260, 324, 260, 343, 48, 343],
[],
[],
[626, 324, 639, 324, 639, 343, 626, 343],
[746, 324, 783, 324, 783, 341, 746, 341],
[912, 324, 950, 324, 950, 341, 912, 341],
[989, 323, 1010, 323, 1010, 343, 989, 343],
[1136, 324, 1175, 324, 1175, 343, 1136, 343]
],
"priInvoiceCodeCoord": [868, 23, 1046, 23, 1046, 43, 868, 43],
"priInvoiceNumberCoord": [870, 55, 1016, 55, 1016, 75, 870, 75],
"aftInvoiceCodeCoord": [868, 23, 1046, 23, 1046, 43, 868, 43],
"aftInvoiceNumberCoord": [870, 55, 1016, 55, 1016, 75, 870, 75],
"amountOCRCoord": [898, 512, 950, 512, 950, 533, 898, 533],
"amountTaxOCRCoord": [895, 551, 1001, 551, 1001, 573, 895, 573],
"redSealCoord": [943, 593, 1176, 593, 1176, 777, 943, 777],
"oilMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invTaxSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"tollSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"sealMarkCoord": [851, 708, 943, 708, 943, 733, 851, 733]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
qrLists | object | 二维码信息 |
qrLists.invoiceCode | string | 发票代码 |
qrLists.invoiceNumber | string | 发票号码 |
qrLists.billingDate | string | 开票日期 |
qrLists.amount | string | 不含税金额 |
qrLists.checkCode | string | 校验码 |
qrLists.salesTaxNo | string | 销方税号 |
qrLists.qrInfo | string | 二维码信息 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amount | string | 金额 |
checkCode | string | 校验码 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddressPhone | string | 销方地址及电话 |
salesBankAndNo | string | 销方开户行及账户 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
tax | string | 税额 |
receiverName | string | 收款人 |
recheckName | string | 复核人 |
drawerName | string | 开票人 |
passwordField | string | 密码 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.specificationModel | string | 规格型号 |
invoiceLists.unit | string | 单位 |
invoiceLists.quantity | string | 数量 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
priInvoiceCode | string | 印刷发票代码 |
priInvoiceNumber | string | 印刷发票号码 |
aftInvoiceCode | string | 打印发票代码 |
aftInvoiceNumber | string | 打印发票号码 |
amountOCR | string | 不含税金额OCR |
amountTaxOCR | string | 票面金额OCR |
redSeal | string | 红章 |
oilMark | string | 成品油标志 |
invTaxSign | string | 代开标志 |
tollSign | string | 通行费标志 |
sealMark | string | 销售方(章) |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.qrListsCoord | array | 二维码坐标 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountCoord | array | 不含税金额坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressPhoneCoord | array | 销方地址及电话坐标 |
coord.salesBankAndNoCoord | array | 销方开户行及账户坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.taxCoord | array | 税额坐标 |
coord.receiverNameCoord | array | 收款人坐标 |
coord.recheckNameCoord | array | 复核坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.passwordFieldCoord | array | 密码坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.priInvoiceCodeCoord | array | 印刷发票代码坐标 |
coord.priInvoiceNumberCoord | array | 印刷发票号码坐标 |
coord.aftInvoiceCodeCoord | array | 打印发票代码坐标 |
coord.aftInvoiceNumberCoord | array | 打印发票号码坐标 |
coord.amountOCRCoord | array | 票面金额OCR坐标 |
coord.amountTaxOCRCoord | array | 不含税金额OCR坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.oilMarkCoord | array | 成品油标志坐标 |
coord.invTaxSignCoord | array | 代开标志坐标 |
coord.tollSignCoord | array | 通行费标志坐标 |
coord.sealMarkCoord | array | 销售方(章)坐标 |
十七、电子发票(增值税专用发票)
{
"imgOrgsize": [1920, 2560],
"orientation": 0,
"region": [5, 62, 2519, 1718],
"regionFourPoint": [5, 62, 2519, 62, 2519, 1718, 5, 1718],
"regionFourPointOri": [5, 62, 2519, 62, 2519, 1718, 5, 1718],
"title": "票(增值税专用发票)",
"invoiceNumber": "22151000000000001341",
"billingDate": "20220121",
"purchaserName": "呼和浩特合兴隆餐饮管理有限公司",
"purchaserTaxNo": "911501006706897401",
"salesName": "内蒙古维多利商业(集团)有限公司",
"salesTaxNo": "91150100740109781J",
"amount": "246.51",
"tax": "22.19",
"amountTax": "268.70",
"amountTaxCN": "贰佰陆拾捌圆柒角",
"invoiceLists": [{
"commodityName": "*水冰雪*自来水",
"specificationModel": "",
"unit": "",
"quantity": "",
"unitPrice": "",
"amount": "246.51",
"taxRate": "9%",
"tax": "22.19"
}],
"drawerName": "牛淑婷",
"invoiceType": 9,
"qrLists": {
"qrInfo": "01,31, ,22151000000000001341,268.70,20220121, ,9836",
"invoiceNumber": "22151000000000001341",
"amountTax": "268.70",
"billingDate": "20220121"
},
"coord": {
"titleCoord": [1038, 221, 1740, 240, 1738, 335, 1036, 316],
"invoiceNumberCoord": [1826, 273, 2365, 270, 2365, 315, 1827, 319],
"billingDateCoord": [1981, 339, 2251, 338, 2250, 380, 1980, 381],
"purchaserNameCoord": [302, 528, 870, 543, 869, 589, 302, 573],
"purchaserTaxNoCoord": [215, 596, 1227, 622, 1226, 668, 214, 642],
"salesNameCoord": [1360, 561, 2011, 561, 2010, 608, 1359, 607],
"salesTaxNoCoord": [1354, 625, 2349, 630, 2348, 684, 1353, 678],
"amountCoord": [1778, 1165, 1913, 1168, 1913, 1201, 1778, 1197],
"taxCoord": [2266, 1173, 2389, 1176, 2389, 1212, 2266, 1209],
"amountTaxCoord": [736, 1213, 1089, 1221, 1088, 1283, 735, 1275],
"amountTaxCNCoord": [736, 1213, 1089, 1221, 1088, 1283, 735, 1275],
"invoiceListsCoord": [
[137, 735, 404, 741, 403, 788, 136, 781],
[18, 33, 18, 33, 18, 33, 18, 33],
[18, 33, 18, 33, 18, 33, 18, 33],
[18, 33, 18, 33, 18, 33, 18, 33],
[18, 33, 18, 33, 18, 33, 18, 33],
[1815, 778, 1930, 776, 1931, 820, 1815, 822],
[2132, 775, 2189, 776, 2188, 817, 2131, 816],
[2301, 782, 2395, 784, 2395, 822, 2301, 820]
],
"drawerNameCoord": [384, 1599, 530, 1599, 529, 1651, 384, 1651],
"qrListsCoord": [406, 174, 401, 401, 170, 396, 175, 169]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
amount | string | 金额 |
tax | string | 税额 |
amountTax | string | 票面金额 |
amountTaxCN | string | 票面金额(大写) |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.specificationModel | string | 规格型号 |
invoiceLists.unit | string | 单位 |
invoiceLists.quantity | string | 数量 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
drawerName | string | 开票人 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息列表 |
qrLists.qrInfo | string | 二维码内容 |
qrLists.invoiceNumber | string | 二维码信息- 发票号码 |
qrLists.amountTax | string | 二维码信息- 票面金额 |
qrLists.billingDate | string | 二维码信息-开票日期 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.amountCoord | array | 不含税金额坐标 |
coord.taxCoord | array | 税额的坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.qrListsCoord | array | 二维码坐标 |
十八、机打发票
{
"imgOrgsize": [2500, 3333],
"orientation": 0,
"region": [1, 32, 3166, 2101],
"regionFourPoint": [1, 32, 3166, 32, 3166, 2101, 1, 2101],
"regionFourPointOri": [1, 32, 3166, 32, 3166, 2101, 1, 2101],
"title": "迪卡侬体育用品(深圳)有限公司通用机打发票",
"invoiceCode": "144031600126",
"invoiceNumber": "04809063",
"billingDate": "2017-12-17",
"category": "零售业",
"checkCode": "46483035862135661591",
"purchaserName": "深圳市科源建设集团有限公司",
"purchaserTaxNo": "914403001923609580",
"salesName": "迪卡侬体育用品(深圳)有限公司",
"salesTaxNo": "440300772712315",
"amountTaxCN": "叁佰捌拾柒元贰角",
"amountTax": "387.20",
"invoiceLists": [{
"commodityName": "动器材及配件",
"unit": "件",
"unitPrice": "337.20",
"amount": "387.20"
}],
"redSeal": "1",
"province": "广东省",
"invoiceType": 24,
"qrLists": {
"qrInfo": ""
},
"coord": {
"titleCoord": [437, 127, 2333, 208, 2329, 343, 432, 261],
"invoiceCodeCoord": [1816, 336, 2807, 386, 2803, 474, 1812, 424],
"invoiceNumberCoord": [2171, 497, 2611, 515, 2608, 603, 2168, 585],
"billingDateCoord": [323, 545, 765, 555, 762, 623, 321, 613],
"categoryCoord": [1390, 569, 1590, 578, 1588, 653, 1387, 645],
"checkCodeCoord": [384, 853, 986, 878, 984, 935, 381, 910],
"purchaserNameCoord": [403, 650, 1216, 682, 1214, 741, 401, 708],
"purchaserTaxNoCoord": [1231, 681, 1910, 713, 1908, 781, 1229, 748],
"salesNameCoord": [1715, 1673, 2711, 1717, 2707, 1796, 1713, 1752],
"salesTaxNoCoord": [390, 753, 841, 772, 839, 830, 387, 811],
"amountTaxCNCoord": [434, 1429, 1036, 1455, 1033, 1523, 432, 1497],
"amountTaxCoord": [434, 1429, 1036, 1455, 1033, 1523, 432, 1497],
"invoiceListsCoord": [
[4, 1079, 397, 1095, 394, 1169, 2, 1153],
[1465, 1144, 1536, 1148, 1534, 1224, 1462, 1220],
[2016, 1164, 2235, 1177, 2231, 1251, 2012, 1239],
[2521, 1198, 2725, 1207, 2722, 1272, 2518, 1263]
],
"redSealCoord": [1866, 1045, 2690, 1079, 2666, 1745, 1842, 1712],
"qrListsCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
category | string | 种类 |
checkCode | string | 校验码 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 明细列表-项目名称 |
invoiceLists.unit | string | 明细-单位 |
invoiceLists.unitPrice | string | 明细列表-单价 |
invoiceLists.amount | string | 明细列表-金额 |
redSeal | string | 红章 |
province | string | 省份 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 二维码信息 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.categoryCoord | array | 行业分类坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.qrListsCoord | array | 二维码信息列表坐标 |
二十、税收完税证明
{
"imgOrgsize": [472, 1024],
"orientation": 0,
"region": [160, 3, 858, 463],
"regionFourPoint": [160, 3, 858, 3, 858, 463, 160, 463],
"regionFourPointOri": [160, 3, 858, 3, 858, 463, 160, 463],
"title": "税收完税证明",
"taxAuthorityNo": "国家税务总局儋州市税务局",
"auctionTaxNo": "352625197506020425",
"auctionTaxName": "钟菊兰",
"invoiceLists": [{
"voucherNumber": "346906200700183583",
"taxCategories": "樊税",
"itemsName": "增量房(商品住房买卖)",
"timeHorizon": "2020-07-01\u81f32020-07-31",
"storageDate": "2020-07-30",
"amount": "4872.11"
}],
"amountTax": "4872.11",
"billingDate": "2020-07-30",
"remarks": "备注正常申报一般申报正税自行申报现金主管税务所(科、分局):国家税务总局儋州市税务局第一税务分局(办税服务厅)房源编号:F469003xxxx0019751房屋坐落位置;儋州市滨海新区第四组团控制性详细规划2-xx-x地块中国海南海花岛2号岛xxx#楼12(层)1xx8(室)房屋面积:50.46平米合同签订时间:2017-01-25楼层:xx房间号:xx08",
"invoiceType": 37,
"coord": {
"titleCoord": [421, 32, 600, 31, 600, 53, 421, 54],
"taxAuthorityNoCoord": [663, 89, 793, 89, 793, 102, 663, 102],
"auctionTaxNoCoord": [336, 111, 432, 111, 432, 122, 336, 122],
"auctionTaxNameCoord": [669, 110, 705, 110, 705, 124, 669, 124],
"invoiceListsCoord": [
[217, 161, 288, 160, 288, 169, 217, 170],
[306, 159, 323, 159, 323, 171, 306, 171],
[386, 159, 469, 159, 469, 170, 386, 170],
[531, 160, 618, 160, 618, 171, 531, 171],
[658, 161, 699, 161, 699, 170, 658, 170],
[776, 161, 804, 161, 804, 171, 776, 171]
],
"amountTaxCoord": [297, 334, 427, 334, 427, 347, 297, 347],
"billingDateCoord": [455, 89, 568, 89, 568, 102, 455, 102],
"remarksCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
taxAuthorityNo | string | 税务机关 |
auctionTaxNo | string | 纳税人识别号 |
auctionTaxName | string | 纳税人名称 |
invoiceLists | array | 明细列表 |
invoiceLists.voucherNumber | string | 原凭证号 |
invoiceLists.taxCategories | string | 税种 |
invoiceLists.itemsName | string | 品目名称 |
invoiceLists.timeHorizon | string | 税款所属时间 |
invoiceLists.storageDate | string | 入(退)库日期 |
invoiceLists.amount | string | 实缴(退)金额 |
amountTax | string | 票面金额 |
billingDate | string | 填发日期 |
remarks | string | 备注 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.taxAuthorityNoCoord | array | 税务机关坐标 |
coord.auctionTaxNoCoord | array | 纳税人识别号坐标 |
coord.auctionTaxNameCoord | array | 纳税人名称坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.billingDateCoord | array | 填发日期坐标 |
coord.remarksCoord | array | 备注坐标 |
二十一、医疗票据
{
"imgOrgsize": [2341, 1650],
"orientation": 270,
"region": [227, 58, 1434, 2340],
"regionFourPoint": [252, 87, 1434, 101, 1408, 2140, 227, 2126],
"regionFourPointOri": [1434, 101, 1408, 2140, 227, 2126, 252, 87],
"invoiceCode": "31060321",
"invoiceNumber": "1016599841",
"billingDate": "2021-11-15",
"amountTax": "60.00",
"amountTaxCN": "陆拾元整",
"purchaserName": "袁晋宛",
"invoiceLists": [{
"amount": "60.00",
"commodityName": "化验费"
}, {
"amount": "60.00",
"remarks": "0.00:0.00",
"quantity_unit": "1.00次",
"commodityName": "新型冠状病毒核酸检测"
}],
"invoiceType": 38,
"qrLists": {
"qrInfo": "CZ-EI-31,1.1.0,31060321,1016599841,cf8920,20211115,60.00"
},
"coord": {
"invoiceCodeCoord": [1174, 590, 1178, 802, 1147, 802, 1143, 590],
"invoiceNumberCoord": [1173, 1443, 1178, 1674, 1148, 1674, 1142, 1443],
"billingDateCoord": [1103, 1445, 1103, 1674, 1077, 1674, 1077, 1445],
"amountTaxCoord": [695, 792, 695, 885, 669, 884, 669, 791],
"amountTaxCNCoord": [695, 792, 695, 885, 669, 884, 669, 791],
"purchaserNameCoord": [1099, 686, 1100, 756, 1074, 755, 1073, 685],
"invoiceListsCoord": [
[
[983, 592, 983, 821, 955, 821, 955, 592],
[983, 907, 983, 981, 957, 981, 957, 907],
[978, 1096, 978, 1262, 960, 1262, 960, 1096],
[978, 1096, 978, 1262, 960, 1262, 960, 1096]
],
[
[1019, 592, 1017, 664, 990, 663, 992, 591],
[1016, 1094, 1017, 1154, 995, 1154, 994, 1094]
]
],
"qrListsCoord": [1235, 1770, 1235, 1924, 1081, 1924, 1081, 1770]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amountTax | string | 票面金额 |
amountTaxCN | string | 票面金额(大写) |
purchaserName | string | 购方名称 |
invoiceLists | array | 明细列表 |
invoiceLists.amount | string | 金额 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 二维码详情 |
coord | object | 坐标信息 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.amountTaxCNCoord | array | 票面金额大写坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.qrListsCoord | array | 二维码信息坐标 |
二十二、增值税专用发票
{
"imgOrgsize": [1406, 2500],
"orientation": 0,
"region": [5, 0, 2500, 1391],
"regionFourPoint": [10, 1, 2497, 1, 2497, 1386, 10, 1386],
"regionFourPointOri": [10, 1, 2497, 1, 2497, 1386, 10, 1386],
"title": "北京增值税专用发票",
"invoiceCode": "1100183130",
"invoiceNumber": "29273333",
"billingDate": "2019-06-04",
"amount": "69867.25",
"purchaserName": "深圳市科源建设集团股份有限公司",
"purchaserTaxNo": "914403001923609580",
"purchaserAddressPhone": "深圳市罗湖区笋岗街道笋西社区桃园路231号3号仓三层302-03室0755-83288893",
"purchaserBank": "平安银行深圳中电支行11014910182009",
"salesName": "北京鑫方盛五金交电有限公司",
"salesTaxNo": "9111011570011480X9",
"salesAddressPhone": "北京市大兴区黄村镇海鑫北路9号61267312",
"salesBankAndNo": "北京银行股份有限公司永宁门支行01090368900120102169651",
"amountTaxCN": "柒万捌仟玖佰伍拾圆整",
"amountTax": "78950.00",
"tax": "9082.75",
"receiverName": "连赛亚",
"recheckName": "王月",
"drawerName": "段星星",
"passwordField": "6024>/++*-6769/1653->0+4*824*-81->/6165/679->+*090-707+37*748+/*572/7+7//6653>>125*845<981><>41+5->78>>2+980",
"invoiceLists": [{
"commodityName": "*黑色金属冶炼压延品*热镀锌方管",
"specificationModel": "40*40*2.5",
"unit": "根",
"quantity": "524",
"unitPrice": "88.495575221",
"amount": "46371.68",
"taxRate": "13%",
"tax": "6028.32"
}, {
"commodityName": "*黑色金属冶炼压延品*热镀锌角",
"specificationModel": "3#A",
"unit": "根",
"quantity": "300",
"unitPrice": "33.716814159",
"amount": "10115.04",
"taxRate": "13%",
"tax": "1314.96"
}, {
"commodityName": "*黑色金属冶炼压延品*热镀锌角",
"specificationModel": "40*4",
"unit": "根",
"quantity": "210",
"unitPrice": "63.716814159",
"amount": "13380.53",
"taxRate": "13%",
"tax": "1739.47"
}],
"priInvoiceCode": "1100183130",
"priInvoiceNumber": "29273333",
"aftInvoiceCode": "1100183130",
"aftInvoiceNumber": "29273333",
"amountOCR": "69867.25",
"amountTaxOCR": "78950.00",
"invoiceForm": "发票联",
"redSeal": "1",
"oilMark": "0",
"invTaxSign": "1",
"tollSign": "0",
"sealMark": "1",
"administativeDivisionName": "北京市",
"invoiceType": 1,
"invoiceFormNum": "第三联",
"qrLists": {
"invoiceCode": "",
"invoiceNumber": "",
"billingDate": "",
"amount": "",
"checkCode": "",
"salesTaxNo": "",
"qrInfo": ""
},
"coord": {
"titleCoord": [978, 31, 1563, 33, 1563, 95, 976, 94],
"invoiceCodeCoord": [492, 72, 849, 67, 848, 115, 492, 119],
"invoiceNumberCoord": [1691, 68, 2097, 84, 2094, 143, 1690, 128],
"billingDateCoord": [1965, 196, 2234, 202, 2233, 237, 1964, 231],
"amountCoord": [1671, 865, 1942, 871, 1941, 916, 1670, 910],
"purchaserNameCoord": [554, 239, 1100, 261, 1099, 297, 553, 274],
"purchaserTaxNoCoord": [585, 284, 1140, 307, 1138, 343, 583, 318],
"purchaserAddressPhoneCoord": [540, 321, 1391, 358, 1391, 386, 539, 349],
"purchaserBankCoord": [535, 379, 1215, 408, 1214, 444, 534, 415],
"salesNameCoord": [429, 1002, 962, 1013, 961, 1056, 428, 1045],
"salesTaxNoCoord": [471, 1063, 1123, 1077, 1122, 1126, 469, 1112],
"salesAddressPhoneCoord": [414, 1126, 1243, 1144, 1242, 1181, 413, 1163],
"salesBankAndNoCoord": [393, 1184, 1379, 1199, 1378, 1229, 392, 1214],
"amountTaxCNCoord": [712, 918, 1220, 933, 1219, 980, 710, 964],
"amountTaxCoord": [1950, 950, 2249, 957, 2248, 1006, 1949, 999],
"taxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"receiverNameCoord": [5, 1216, 314, 1223, 313, 1278, 5, 1271],
"recheckNameCoord": [737, 1226, 944, 1230, 943, 1282, 736, 1278],
"drawerNameCoord": [1468, 1239, 1614, 1242, 1613, 1294, 1467, 1290],
"passwordFieldCoord": [1487, 273, 2207, 285, 2221, 435, 1486, 422],
"invoiceListsCoord": [
[
[152, 470, 706, 482, 703, 567, 151, 555],
[721, 487, 894, 495, 893, 533, 720, 525],
[1043, 498, 1088, 499, 1087, 540, 1042, 539],
[1278, 513, 1340, 514, 1339, 549, 1277, 547],
[1378, 515, 1571, 519, 1570, 554, 1377, 550],
[1751, 519, 1901, 519, 1901, 558, 1751, 558],
[1941, 521, 2007, 523, 2006, 560, 1940, 558],
[2204, 527, 2338, 530, 2337, 567, 2203, 564]
],
[
[132, 553, 688, 564, 687, 608, 130, 597],
[709, 568, 773, 572, 772, 609, 708, 605],
[1039, 577, 1086, 578, 1085, 621, 1038, 620],
[1279, 593, 1342, 595, 1341, 630, 1278, 628],
[1381, 595, 1573, 603, 1571, 634, 1380, 625],
[1759, 601, 1909, 604, 1908, 642, 1758, 638],
[1950, 603, 2021, 604, 2020, 648, 1949, 646],
[2218, 611, 2352, 614, 2351, 651, 2217, 648]
],
[
[111, 637, 695, 650, 694, 690, 110, 677],
[690, 659, 781, 662, 780, 693, 689, 691],
[1030, 658, 1084, 659, 1083, 708, 1029, 707],
[1280, 675, 1340, 676, 1339, 711, 1279, 709],
[1377, 677, 1578, 681, 1578, 716, 1376, 712],
[1766, 686, 1913, 688, 1912, 726, 1765, 723],
[1956, 687, 2027, 688, 2026, 731, 1955, 730],
[2231, 695, 2365, 698, 2364, 736, 2230, 732]
]
],
"priInvoiceCodeCoord": [492, 72, 849, 67, 848, 115, 492, 119],
"priInvoiceNumberCoord": [1691, 68, 2097, 84, 2094, 143, 1690, 128],
"aftInvoiceCodeCoord": [2086, 112, 2257, 117, 2256, 145, 2086, 141],
"aftInvoiceNumberCoord": [2066, 147, 2260, 151, 2259, 189, 2065, 184],
"amountOCRCoord": [1671, 865, 1942, 871, 1941, 916, 1670, 910],
"amountTaxOCRCoord": [1950, 950, 2249, 957, 2248, 1006, 1949, 999],
"invoiceFormCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"redSealCoord": [1646, 1016, 2208, 1028, 2199, 1409, 1636, 1396],
"oilMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invTaxSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"tollSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"sealMarkCoord": [2122, 1250, 2235, 1252, 2234, 1299, 2122, 1296],
"invoiceFormNumCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"qrListsCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 发票抬头 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amount | string | 不含税金额 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
purchaserAddressPhone | string | 购方地址电话 |
purchaserBank | string | 购方开户行账户 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddressPhone | string | 销方地址及电话 |
salesBankAndNo | string | 销方开户行及账户 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
tax | string | 税额 |
receiverName | string | 收款人名称 |
recheckName | string | 复核人名称 |
drawerName | string | 开票人名称 |
passwordField | string | 密码区 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.specificationModel | string | 规格型号 |
invoiceLists.unit | string | 单位 |
invoiceLists.quantity | string | 数量 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
priInvoiceCode | string | 印刷发票代码 |
priInvoiceNumber | string | 印刷发票号码 |
aftInvoiceCode | string | 打印发票代码 |
aftInvoiceNumber | string | 打印发票号码 |
amountOCR | string | 票面金额OCR |
amountTaxOCR | string | 不含税金额OCR |
invoiceForm | string | 发票联次 |
redSeal | string | 红章 |
oilMark | string | 成品油标志 |
invTaxSign | string | 代开标志 |
tollSign | string | 通行费标志 |
sealMark | string | 销售方章 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
invoiceFormNum | string | 发票联 |
qrLists | object | 二维码信息列表 |
qrLists.invoiceCode | string | 发票代码(二维码) |
qrLists.invoiceNumber | string | 发票号码(二维码) |
qrLists.billingDate | string | 开票日期(二维码) |
qrLists.amount | string | 合计金额(二维码) |
qrLists.checkCode | string | 校验码(二维码) |
qrLists.salesTaxNo | string | 销售方纳税人识别号(二维码) |
qrLists.qrInfo | string | 二维码信息 |
coord | object | 发票各元素坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountCoord | array | 不含税金额坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.purchaserAddressPhoneCoord | array | 购方地址电话坐标 |
coord.purchaserBankCoord | array | 购方开户行账户坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressPhoneCoord | array | 销方地址及电话坐标 |
coord.salesBankAndNoCoord | array | 销方开户行及账户坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.taxCoord | array | 税额坐标 |
coord.receiverNameCoord | array | 收款人坐标 |
coord.recheckNameCoord | array | 复核坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.passwordFieldCoord | array | 密码坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.priInvoiceCodeCoord | array | 印刷发票代码坐标 |
coord.priInvoiceNumberCoord | array | 印刷发票号码坐标 |
coord.aftInvoiceCodeCoord | array | 打印发票代码坐标 |
coord.aftInvoiceNumberCoord | array | 打印发票号码坐标 |
coord.amountOCRCoord | array | 票面金额OCR坐标 |
coord.amountTaxOCRCoord | array | 不含税金额OCR坐标 |
coord.invoiceFormCoord | array | 发票联坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.oilMarkCoord | array | 成品油标志坐标 |
coord.invTaxSignCoord | array | 代开标志坐标 |
coord.tollSignCoord | array | 通行费标志坐标 |
coord.sealMarkCoord | array | 销售方章坐标 |
coord.invoiceFormNumCoord | array | 发票联坐标 |
coord.qrListsCoord | array | 二维码信息列表坐标 |
二十三、增值税普通发票(电子)
{
"imgOrgsize": [2000, 2667],
"orientation": 0,
"region": [0, 51, 2667, 2000],
"regionFourPoint": [1, 84, 2659, 84, 2659, 1949, 1, 1949],
"regionFourPointOri": [1, 84, 2659, 84, 2659, 1949, 1, 1949],
"qrLists": {
"invoiceCode": "",
"invoiceNumber": "",
"billingDate": "",
"amount": "",
"checkCode": "",
"salesTaxNo": "",
"qrInfo": ""
},
"title": "北京增值税电子普通发票",
"invoiceCode": "014001900311",
"invoiceNumber": "06108395",
"billingDate": "2019-10-29",
"amount": "47.29",
"checkCode": "00712428850714664728",
"purchaserName": "深圳市科源建设集团股份有限公司",
"purchaserTaxNo": "914403001923609580",
"salesName": "滴滴出行科技有限公司北京分公司",
"salesTaxNo": "91110108MA009C666H",
"salesAddressPhone": "北京市海淀区东北旺西路8号院35号楼4层401室010-62682929",
"salesBankAndNo": "\u62db\u5546\u94f6\u884c\u80a1\u4efd\u6709\u9650\u516c\u53f8\u5317\u4eac\u4e1c\u4e09\u73af\u652f\u884c110925436310608",
"amountTaxCN": "肆拾捌圆柒角壹分",
"amountTax": "48.71",
"tax": "1.42",
"receiverName": "张力强",
"recheckName": "桂春辉",
"drawerName": "杜洪亮",
"passwordField": "03/<07943-5/1>/655>919012+044*-09*/0/42935>25749/+>9578*34*-+5188/32>*5<2<987-61*6>6><2*03><*101/83<190370-4<913",
"remarks": "*1#",
"invoiceLists": [{
"commodityName": "*运输服务*客运服务费",
"specificationModel": "无",
"unit": "次",
"quantity": "1",
"unitPrice": "47.29",
"amount": "47.29",
"taxRate": "3%",
"tax": "1.42"
}],
"priInvoiceCode": "014001900311",
"priInvoiceNumber": "06108395",
"aftInvoiceCode": "014001900311",
"aftInvoiceNumber": "06108395",
"amountOCR": "47.29",
"amountTaxOCR": "48.71",
"redSeal": "1",
"machineCode": "499098487704",
"oilMark": "0",
"invTaxSign": "1",
"tollSign": "0",
"administativeDivisionName": "山西省",
"invoiceType": 10,
"sealMark": "0",
"coord": {
"qrListsCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"titleCoord": [849, 251, 1818, 273, 1817, 373, 848, 351],
"invoiceCodeCoord": [1895, 277, 2350, 287, 2348, 341, 1893, 331],
"invoiceNumberCoord": [1872, 337, 2405, 349, 2403, 418, 1870, 406],
"billingDateCoord": [2066, 420, 2355, 412, 2355, 464, 2066, 472],
"amountCoord": [1906, 1303, 2058, 1307, 2057, 1369, 1906, 1365],
"checkCodeCoord": [2069, 490, 2576, 480, 2574, 522, 2067, 530],
"purchaserNameCoord": [444, 516, 1088, 538, 1086, 587, 444, 566],
"purchaserTaxNoCoord": [444, 578, 855, 595, 855, 643, 442, 627],
"salesNameCoord": [417, 1445, 1017, 1463, 1015, 1510, 416, 1492],
"salesTaxNoCoord": [416, 1500, 853, 1516, 851, 1562, 414, 1546],
"salesAddressPhoneCoord": [149, 1534, 1354, 1580, 1353, 1634, 145, 1586],
"salesBankAndNoCoord": [37, 1584, 87, 1586, 85, 1642, 35, 1640],
"amountTaxCNCoord": [695, 1359, 1077, 1369, 1077, 1427, 695, 1417],
"amountTaxCoord": [2037, 1393, 2323, 1393, 2325, 1449, 2037, 1449],
"taxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"receiverNameCoord": [302, 1671, 435, 1667, 437, 1725, 304, 1731],
"recheckNameCoord": [965, 1687, 1093, 1697, 1089, 1753, 963, 1743],
"drawerNameCoord": [1562, 1711, 1692, 1715, 1690, 1771, 1561, 1767],
"passwordFieldCoord": [1607, 564, 2590, 582, 2578, 826, 1594, 800],
"remarksCoord": [1488, 1614, 2281, 1634, 2279, 1725, 1486, 1705],
"invoiceListsCoord": [
[35, 830, 446, 848, 442, 906, 33, 888],
[714, 854, 768, 856, 766, 912, 712, 910],
[1082, 864, 1141, 864, 1139, 928, 1081, 928],
[1401, 880, 1431, 882, 1429, 928, 1399, 926],
[1569, 884, 1683, 888, 1683, 941, 1569, 937],
[1936, 894, 2042, 896, 2042, 949, 1936, 947],
[2110, 902, 2179, 902, 2179, 951, 2110, 951],
[2490, 906, 2583, 908, 2583, 965, 2490, 963]
],
"priInvoiceCodeCoord": [1895, 277, 2350, 287, 2348, 341, 1893, 331],
"priInvoiceNumberCoord": [1872, 337, 2405, 349, 2403, 418, 1870, 406],
"aftInvoiceCodeCoord": [1895, 277, 2350, 287, 2348, 341, 1893, 331],
"aftInvoiceNumberCoord": [1872, 337, 2405, 349, 2403, 418, 1870, 406],
"amountOCRCoord": [1906, 1303, 2058, 1307, 2057, 1369, 1906, 1365],
"amountTaxOCRCoord": [2037, 1393, 2323, 1393, 2325, 1449, 2037, 1449],
"redSealCoord": [2048, 1492, 2528, 1502, 2521, 1906, 2041, 1896],
"machineCodeCoord": [279, 444, 545, 444, 544, 494, 277, 494],
"oilMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invTaxSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"tollSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"sealMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
qrLists | object | 二维码信息列表 |
qrLists.invoiceCode | string | 发票代码(二维码) |
qrLists.invoiceNumber | string | 发票号码(二维码) |
qrLists.billingDate | string | 开票日期(二维码) |
qrLists.amount | string | 不含税金额(二维码) |
qrLists.checkCode | string | 校验码(二维码) |
qrLists.salesTaxNo | string | 销方税号(二维码) |
qrLists.qrInfo | string | 其他信息(二维码) |
title | string | 发票抬头 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amount | string | 发票金额 |
checkCode | string | 校验码 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddressPhone | string | 销方地址及电话 |
salesBankAndNo | string | 销方开户行及账户 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
tax | string | 发票税额 |
receiverName | string | 收款人 |
recheckName | string | 复核人 |
drawerName | string | 开票人 |
passwordField | string | 密码区 |
remarks | string | 备注 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.specificationModel | string | 规格型号 |
invoiceLists.unit | string | 单位 |
invoiceLists.quantity | string | 数量 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
priInvoiceCode | string | 印刷发票代码 |
priInvoiceNumber | string | 印刷发票号码 |
aftInvoiceCode | string | 打印发票代码 |
aftInvoiceNumber | string | 打印发票号码 |
amountOCR | string | 票面金额OCR |
amountTaxOCR | string | 不含税金额OCR |
redSeal | string | 是否有红章 |
machineCode | string | 机器编码 |
oilMark | string | 是否为成品油发票 |
invTaxSign | string | 是否为代开发票 |
tollSign | string | 是否为通行费发票 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
sealMark | string | 销售方(章) |
coord | object | 发票各项信息坐标信息 |
coord.qrListsCoord | array | 二维码信息坐标 |
coord.titleCoord | array | 发票抬头坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountCoord | array | 不含税金额坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressPhoneCoord | array | 销方地址及电话坐标 |
coord.salesBankAndNoCoord | array | 销方开户行及账户坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.taxCoord | array | 发票税额坐标 |
coord.receiverNameCoord | array | 收款人坐标 |
coord.recheckNameCoord | array | 复核人坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.passwordFieldCoord | array | 密码区坐标 |
coord.remarksCoord | array | 备注坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.priInvoiceCodeCoord | array | 印刷发票代码坐标 |
coord.priInvoiceNumberCoord | array | 印刷发票号码坐标 |
coord.aftInvoiceCodeCoord | array | 打印发票代码坐标 |
coord.aftInvoiceNumberCoord | array | 打印发票号码坐标 |
coord.amountOCRCoord | array | 票面金额OCR识别结果坐标 |
coord.amountTaxOCRCoord | array | 不含税金额OCR识别结果坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.machineCodeCoord | array | 机器编码坐标 |
coord.oilMarkCoord | array | 成品油标志坐标 |
coord.invTaxSignCoord | array | 代开标志坐标 |
coord.tollSignCoord | array | 通行费标志坐标 |
coord.sealMarkCoord | array | 销售方(章)坐标 |
二十四、增值税普通发票(通行费)
{
"imgOrgsize": [1080, 1440],
"orientation": 0,
"region": [109, 98, 1373, 949],
"regionFourPoint": [111, 98, 1373, 100, 1371, 949, 109, 947],
"regionFourPointOri": [111, 98, 1373, 100, 1371, 949, 109, 947],
"qrLists": {
"invoiceCode": "022001700112",
"invoiceNumber": "11768810",
"billingDate": "2019-01-15",
"amount": "1.82",
"checkCode": "12330565357518210528",
"salesTaxNo": "",
"qrInfo": "01,10,022001700112,11768810,1.82,20190115,12330565357518210528,E95C,"
},
"title": "吉林增值税电子普通发票",
"invoiceCode": "022001700112",
"invoiceNumber": "11768810",
"billingDate": "2019-01-15",
"amount": "1.82",
"checkCode": "12330565357518210528",
"purchaserName": "农安鸿泰医院",
"purchaserTaxNo": "52220122593369021M",
"salesName": "长春高速公路有限责任公司",
"salesTaxNo": "91220101730775916M",
"salesAddressPhone": "吉林省长春市高新区晨光街161号0431-85868971",
"salesBankAndNo": "吉林银行汽车贸易城支行7760120109000240",
"amountTaxCN": "壹元捌角柒分",
"amountTax": "1.87",
"tax": "0.05",
"receiverName": "欧阳文斌",
"recheckName": "欧阳文斌",
"drawerName": "拾价",
"passwordField": "03/5><26/7*972-7+4+<3*5859/7974863179>+6791*38773+274139<07088*//39/<6+>6<24393</01/77<7701<66016><719>1+5173><0",
"remarks": "伟*布##军81拾价",
"invoiceLists": [{
"commodityName": "*经营租赁*通行费",
"specificationModel": "吉A60HM1",
"unit": "客车",
"quantity": "20190104",
"unitPrice": "20190104",
"amount": "1.82",
"taxRate": "3%",
"tax": "0.05"
}],
"priInvoiceCode": "022001700112",
"priInvoiceNumber": "11768810",
"aftInvoiceCode": "022001700112",
"aftInvoiceNumber": "11768810",
"amountOCR": "1.82",
"amountTaxOCR": "1.87",
"redSeal": "1",
"machineCode": "499099652222",
"oilMark": "0",
"invTaxSign": "1",
"tollSign": "1",
"sealMark": "1",
"administativeDivisionName": "吉林省",
"invoiceType": 14,
"coord": {
"qrListsCoord": [318, 114, 316, 230, 197, 228, 199, 112],
"titleCoord": [539, 145, 979, 154, 978, 195, 538, 186],
"invoiceCodeCoord": [1011, 156, 1212, 160, 1212, 183, 1010, 178],
"invoiceNumberCoord": [1010, 186, 1175, 190, 1175, 210, 1010, 207],
"billingDateCoord": [1011, 212, 1218, 218, 1216, 242, 1010, 235],
"amountCoord": [1031, 627, 1087, 629, 1087, 653, 1031, 651],
"checkCodeCoord": [1011, 241, 1306, 249, 1305, 272, 1010, 263],
"purchaserNameCoord": [358, 273, 472, 275, 472, 296, 358, 293],
"purchaserTaxNoCoord": [357, 302, 550, 306, 550, 326, 357, 322],
"salesNameCoord": [348, 705, 572, 705, 571, 726, 347, 727],
"salesTaxNoCoord": [346, 733, 541, 733, 542, 753, 346, 754],
"salesAddressPhoneCoord": [349, 762, 735, 760, 734, 781, 348, 782],
"salesBankAndNoCoord": [177, 777, 199, 777, 199, 801, 177, 801],
"amountTaxCNCoord": [433, 661, 569, 663, 569, 685, 433, 684],
"amountTaxCoord": [1142, 666, 1198, 667, 1198, 688, 1142, 687],
"taxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"receiverNameCoord": [287, 822, 364, 823, 364, 845, 286, 844],
"recheckNameCoord": [602, 819, 679, 821, 678, 844, 601, 843],
"drawerNameCoord": [911, 800, 965, 797, 965, 810, 911, 811],
"passwordFieldCoord": [884, 285, 1313, 293, 1313, 398, 882, 390],
"remarksCoord": [911, 672, 1306, 680, 1304, 819, 909, 811],
"invoiceListsCoord": [
[178, 423, 325, 424, 324, 446, 178, 444],
[440, 426, 518, 429, 517, 451, 439, 448],
[642, 429, 683, 430, 682, 453, 641, 452],
[713, 431, 797, 433, 796, 453, 712, 451],
[826, 432, 911, 433, 910, 455, 825, 454],
[1049, 433, 1090, 433, 1089, 458, 1048, 458],
[1122, 432, 1154, 433, 1154, 460, 1121, 459],
[1281, 437, 1318, 438, 1318, 458, 1280, 457]
],
"priInvoiceCodeCoord": [1011, 156, 1212, 160, 1212, 183, 1010, 178],
"priInvoiceNumberCoord": [1010, 186, 1175, 190, 1175, 210, 1010, 207],
"aftInvoiceCodeCoord": [1011, 156, 1212, 160, 1212, 183, 1010, 178],
"aftInvoiceNumberCoord": [1010, 186, 1175, 190, 1175, 210, 1010, 207],
"amountOCRCoord": [1031, 627, 1087, 629, 1087, 653, 1031, 651],
"amountTaxOCRCoord": [1142, 666, 1198, 667, 1198, 688, 1142, 687],
"redSealCoord": [1097, 717, 1328, 720, 1324, 896, 1094, 892],
"machineCodeCoord": [272, 234, 401, 236, 401, 258, 272, 255],
"oilMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invTaxSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"tollSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"sealMarkCoord": [1028, 818, 1148, 822, 1147, 844, 1027, 840]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
qrLists | object | 二维码信息的列表 |
qrLists.invoiceCode | string | 发票代码(二维码) |
qrLists.invoiceNumber | string | 发票号码(二维码) |
qrLists.billingDate | string | 开票日期(二维码) |
qrLists.amount | string | 不含税金额(二维码) |
qrLists.checkCode | string | 校验码(二维码) |
qrLists.salesTaxNo | string | 销方税号(二维码) |
qrLists.qrInfo | string | 其他信息 |
title | string | 发票标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
amount | string | 发票票面金额 |
checkCode | string | 校验码 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方税号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddressPhone | string | 销方地址及电话 |
salesBankAndNo | string | 销方开户行及账户 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
tax | string | 发票合计税额 |
receiverName | string | 发票收款人 |
recheckName | string | 发票复核 |
drawerName | string | 发票开票人 |
passwordField | string | 发票密码区 |
remarks | string | 备注 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 项目名称 |
invoiceLists.specificationModel | string | 车牌号 |
invoiceLists.unit | string | 类型 |
invoiceLists.quantity | string | 通行日期起 |
invoiceLists.unitPrice | string | 通行日期至 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
priInvoiceCode | string | 发票印刷发票代码 |
priInvoiceNumber | string | 发票印刷发票号码 |
aftInvoiceCode | string | 发票打印发票代码 |
aftInvoiceNumber | string | 发票打印发票号码 |
amountOCR | string | 发票票面金额OCR识别结果 |
amountTaxOCR | string | 发票不含税金额OCR识别结果 |
redSeal | string | 红章信息 |
machineCode | string | 机器编码 |
oilMark | string | 成品油标志信息 |
invTaxSign | string | 代开标志信息 |
tollSign | string | 通行费标志信息 |
sealMark | string | 销售方章信息 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
coord | object | 发票各字段坐标信息 |
coord.qrListsCoord | array | 二维码信息坐标 |
coord.titleCoord | array | 发票标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.amountCoord | array | 不含税金额坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressPhoneCoord | array | 销方地址及电话坐标 |
coord.salesBankAndNoCoord | array | 销方开户行及账户坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.taxCoord | array | 合计税额坐标 |
coord.receiverNameCoord | array | 收款人坐标 |
coord.recheckNameCoord | array | 复核坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.passwordFieldCoord | array | 密码区坐标 |
coord.remarksCoord | array | 备注坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.priInvoiceCodeCoord | array | 印刷发票代码坐标 |
coord.priInvoiceNumberCoord | array | 印刷发票号码坐标 |
coord.aftInvoiceCodeCoord | array | 打印发票代码坐标 |
coord.aftInvoiceNumberCoord | array | 打印发票号码坐标 |
coord.amountOCRCoord | array | 票面金额OCR识别结果坐标 |
coord.amountTaxOCRCoord | array | 不含税金额OCR识别结果坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.machineCodeCoord | array | 机器编码坐标 |
coord.oilMarkCoord | array | 成品油标志坐标 |
coord.invTaxSignCoord | array | 代开标志坐标 |
coord.tollSignCoord | array | 通行费标志坐标 |
coord.sealMarkCoord | array | 销售方章坐标 |
二十五、通用电子发票
{
"imgOrgsize": [640, 854],
"orientation": 0,
"region": [0, 0, 794, 640],
"regionFourPoint": [0, 3, 789, 3, 789, 609, 0, 609],
"regionFourPointOri": [0, 3, 789, 3, 789, 609, 0, 609],
"qrLists": {
"invoiceCode": "233001900111",
"invoiceNumber": "32845718",
"billingDate": "2021-03-15",
"amount": "434.65",
"checkCode": "13302621138509966796",
"salesTaxNo": "",
"qrInfo": "01,10,233001900111,32845718,434.65,20210315,13302621138509966796"
},
"invoiceCode": "233001900111",
"invoiceNumber": "32845718",
"amount": "4.35",
"purchaserTaxNo": "43302621138509966790",
"salesName": "安吉浩麟家具经营部",
"salesTaxNo": "92330523MA2D3WQH0H",
"salesAddressPhone": "然村13645724545",
"amountTaxCN": "肆佰叁拾玖元整",
"amountTax": "439.00",
"tax": "434.65",
"receiverName": "王薇",
"drawerName": "王薇",
"passwordField": "",
"remarks": "92330573MA203MQ4QH",
"invoiceLists": [{
"commodityName": "*软体家具*椅子",
"specificationModel": "1",
"unit": "439.00",
"quantity": "0.01",
"unitPrice": "4.35",
"amount": "434.65",
"taxRate": "*",
"tax": "*"
}],
"priInvoiceCode": "233001900114",
"priInvoiceNumber": "32845718",
"aftInvoiceCode": "233001900114",
"aftInvoiceNumber": "32845718",
"amountOCR": "4.35",
"amountTaxOCR": "39.00",
"redSeal": "1",
"oilMark": "0",
"invTaxSign": "1",
"tollSign": "0",
"merchantNo": "13943516222",
"orderNo": "9820d:79/06c4/9a-5Tea*t00ifab0",
"administativeDivisionName": "浙江省",
"invoiceType": 36,
"sealMark": "0",
"billingDate": "2021-03-15",
"checkCode": "13302621138509966796",
"coord": {
"qrListsCoord": [115, 56, 117, 123, 47, 125, 46, 58],
"invoiceCodeCoord": [578, 88, 695, 86, 695, 102, 578, 105],
"invoiceNumberCoord": [579, 105, 678, 102, 679, 118, 579, 121],
"amountCoord": [619, 408, 643, 407, 643, 424, 619, 425],
"purchaserTaxNoCoord": [80, 131, 191, 130, 191, 146, 79, 147],
"salesNameCoord": [174, 461, 287, 458, 287, 473, 174, 476],
"salesTaxNoCoord": [173, 483, 308, 479, 309, 492, 174, 495],
"salesAddressPhoneCoord": [68, 510, 150, 510, 150, 528, 68, 528],
"amountTaxCNCoord": [210, 440, 298, 438, 298, 453, 210, 455],
"amountTaxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"taxCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"receiverNameCoord": [96, 559, 124, 558, 124, 578, 96, 579],
"drawerNameCoord": [511, 545, 538, 544, 539, 562, 511, 562],
"passwordFieldCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"remarksCoord": [622, 522, 726, 519, 726, 534, 622, 537],
"invoiceListsCoord": [
[25, 250, 111, 248, 112, 263, 26, 265],
[254, 248, 259, 248, 260, 258, 254, 258],
[346, 242, 378, 242, 379, 255, 347, 256],
[456, 240, 479, 239, 480, 253, 457, 254],
[564, 236, 587, 235, 587, 249, 564, 250],
[696, 234, 727, 233, 727, 246, 696, 246],
[],
[]
],
"priInvoiceCodeCoord": [578, 88, 695, 86, 695, 102, 578, 105],
"priInvoiceNumberCoord": [579, 105, 678, 102, 679, 118, 579, 121],
"aftInvoiceCodeCoord": [578, 88, 695, 86, 695, 102, 578, 105],
"aftInvoiceNumberCoord": [579, 105, 678, 102, 679, 118, 579, 121],
"amountOCRCoord": [619, 408, 643, 407, 643, 424, 619, 425],
"amountTaxOCRCoord": [647, 427, 682, 425, 682, 442, 647, 443],
"redSealCoord": [593, 475, 747, 471, 749, 580, 596, 584],
"oilMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"invTaxSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"tollSignCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"merchantNoCoord": [452, 182, 507, 181, 508, 197, 452, 199],
"orderNoCoord": [453, 201, 509, 200, 509, 215, 453, 216],
"sealMarkCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"billingDateCoord": [-1, -1, -1, -1, -1, -1, -1, -1],
"checkCodeCoord": [-1, -1, -1, -1, -1, -1, -1, -1]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
qrLists | object | 二维码信息的列表 |
qrLists.invoiceCode | string | 发票代码(二维码) |
qrLists.invoiceNumber | string | 发票号码(二维码) |
qrLists.billingDate | string | 开票日期(二维码) |
qrLists.amount | string | 金额(二维码) |
qrLists.checkCode | string | 校验码(二维码) |
qrLists.salesTaxNo | string | 销售方纳税人识别号(二维码) |
qrLists.qrInfo | string | 二维码信息 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
amount | string | 票面金额 |
purchaserTaxNo | string | 购方税号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方税号 |
salesAddressPhone | string | 销方地址及电话 |
amountTaxCN | string | 票面金额(大写) |
amountTax | string | 票面金额 |
tax | string | 合计税额 |
receiverName | string | 收款人 |
drawerName | string | 开票人 |
passwordField | string | 密码 |
remarks | string | 备注 |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称 |
invoiceLists.specificationModel | string | 货物或应税劳务名称(明细列表) |
invoiceLists.unit | string | 单位(明细列表) |
invoiceLists.quantity | string | 数量 |
invoiceLists.unitPrice | string | 单价 |
invoiceLists.amount | string | 金额 |
invoiceLists.taxRate | string | 税率 |
invoiceLists.tax | string | 税额 |
priInvoiceCode | string | 原发票代码 |
priInvoiceNumber | string | 原发票号码 |
aftInvoiceCode | string | 红冲发票代码 |
aftInvoiceNumber | string | 红冲发票号码 |
amountOCR | string | 票面金额(OCR识别) |
amountTaxOCR | string | 合计金额(OCR识别) |
redSeal | string | 红字专用章 |
oilMark | string | 卷式发票的机器编号 |
invTaxSign | string | 电子发票的签名信息 |
tollSign | string | 电子发票的收款人信息 |
merchantNo | string | 商户号 |
orderNo | string | 订单号 |
administativeDivisionName | string | 所属行政区名称 |
invoiceType | int | 发票类型 |
sealMark | string | 销售方(章) |
billingDate | string | 开票日期 |
checkCode | string | 校验码 |
coord | object | 坐标集 |
coord.qrListsCoord | array | 二维码坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.amountCoord | array | 金额坐标 |
coord.purchaserTaxNoCoord | array | 购方税号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方税号坐标 |
coord.salesAddressPhoneCoord | array | 销方地址及电话坐标 |
coord.amountTaxCNCoord | array | 票面金额(大写)坐标 |
coord.amountTaxCoord | array | 票面金额坐标 |
coord.taxCoord | array | 税额坐标 |
coord.receiverNameCoord | array | 收款人坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.passwordFieldCoord | array | 密码坐标 |
coord.remarksCoord | array | 备注坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.priInvoiceCodeCoord | array | 印刷发票代码坐标 |
coord.priInvoiceNumberCoord | array | 印刷发票号码坐标 |
coord.aftInvoiceCodeCoord | array | 打印发票代码坐标 |
coord.aftInvoiceNumberCoord | array | 打印发票号码坐标 |
coord.amountOCRCoord | array | 票面金额(OCR识别)坐标 |
coord.amountTaxOCRCoord | array | 合计金额(OCR识别)坐标 |
coord.redSealCoord | array | 红章坐标 |
coord.oilMarkCoord | array | 成品油标志坐标 |
coord.invTaxSignCoord | array | 代开标志坐标 |
coord.tollSignCoord | array | 通行费标志坐标 |
coord.merchantNoCoord | array | 商户号坐标 |
coord.orderNoCoord | array | 订单号坐标 |
coord.sealMarkCoord | array | 销售方(章)坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.checkCodeCoord | array | 校验码坐标 |
二十六、退票费报销凭证
{
"imgOrgsize": [895, 1939],
"orientation": 0,
"region": [310, 38, 1688, 827],
"regionFourPoint": [310, 53, 1679, 38, 1688, 812, 319, 827],
"regionFourPointOri": [310, 53, 1679, 38, 1688, 812, 319, 827],
"invoiceNumber": "39Y086354",
"amount": "10.0",
"invoiceType": 39,
"coord": {
"invoiceNumberCoord": [622, 691, 1001, 686, 1001, 746, 623, 751],
"amountCoord": [706, 408, 943, 402, 945, 509, 708, 516]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
invoiceNumber | string | 发票号码 |
amount | string | 金额 |
invoiceType | int | 发票类型 |
coord | object | 坐标集 |
coord.invoiceNumberCoord | array | 发票号码区域坐标 |
coord.amountCoord | array | 金额区域坐标 |
二十七、全电普票
{
"imgOrgsize": [1240, 1754],
"orientation": 0,
"region": [0, 28, 1754, 1240],
"regionFourPoint": [0, 49, 1736, 49, 1736, 1075, 0, 1075],
"regionFourPointOri": [0, 49, 1736, 49, 1736, 1075, 0, 1075],
"title": "电子发票(普通发票)",
"invoiceNumber": "23942000000042039431",
"billingDate": "14896819",
"purchaserName": "安徽智慧皆成数字技术有限公司",
"purchaserTaxNo": "91340000586135067G",
"salesName": "云天(杭州)智能科技有限公司",
"salesTaxNo": "91383800MA8W240038",
"amount": "326.46",
"tax": "42.44",
"amountTax": "368.90",
"amountTaxCN": "叁佰陆拾捌圆玖角",
"invoiceLists": [{
"commodityName": "*计算机外部设备*扫描仪",
"specificationModel": "",
"unit": "套",
"quantity": "1",
"unitPrice": "326.46017699115",
"amount": "326.46",
"taxRate": "13%",
"tax": "42.44"
}],
"drawerName": "彭仪",
"invoiceType": 83,
"qrLists": {
"qrInfo": "233001900111,14896819,20200803,46800.00,1377719548030685",
"billingDate": "14896819",
"amountTax": "46800.00",
"invoiceNumber": ""
},
"coord": {
"titleCoord": [569, 103, 1133, 103, 1133, 155, 569, 155],
"invoiceNumberCoord": [1287, 123, 1688, 123, 1688, 157, 1287, 157],
"billingDateCoord": [1288, 175, 1606, 175, 1606, 207, 1288, 207],
"purchaserNameCoord": [98, 314, 536, 314, 536, 344, 98, 344],
"purchaserTaxNoCoord": [451, 403, 832, 403, 832, 432, 451, 432],
"salesNameCoord": [1010, 317, 1365, 317, 1365, 344, 1010, 344],
"salesTaxNoCoord": [934, 401, 1670, 401, 1670, 432, 934, 432],
"amountCoord": [1190, 802, 1287, 804, 1287, 835, 1190, 833],
"taxCoord": [1635, 804, 1725, 804, 1725, 835, 1635, 835],
"amountTaxCoord": [481, 846, 739, 846, 739, 885, 481, 885],
"amountTaxCNCoord": [481, 846, 739, 846, 739, 885, 481, 885],
"invoiceListsCoord": [
[32, 506, 328, 506, 328, 535, 32, 535],
[-1, 27, -1, 27, -1, 27, -1, 27],
[581, 506, 613, 506, 613, 538, 581, 538],
[-1, 27, -1, 27, -1, 27, -1, 27],
[841, 510, 1067, 510, 1067, 538, 841, 538],
[1195, 509, 1282, 509, 1282, 538, 1195, 538],
[1368, 509, 1416, 509, 1416, 538, 1368, 538],
[1646, 509, 1723, 509, 1723, 538, 1646, 538]
],
"drawerNameCoord": [154, 1115, 323, 1115, 323, 1154, 154, 1154],
"qrListsCoord": [217, 83, 217, 251, 47, 251, 47, 83]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 发票抬头 |
invoiceNumber | string | 发票号码 |
billingDate | string | 开票日期 |
purchaserName | string | 购方名称 |
purchaserTaxNo | string | 购方纳税人识别号 |
salesName | string | 销方名称 |
salesTaxNo | string | 销方纳税人识别号 |
amount | string | 合计金额 |
tax | string | 合计税额 |
amountTax | string | 价税合计 |
amountTaxCN | string | 价税合计(大写) |
invoiceLists | array | 明细列表 |
invoiceLists.commodityName | string | 货物或应税劳务名称(明细列表) |
invoiceLists.specificationModel | string | 规格型号(明细列表) |
invoiceLists.unit | string | 单位(明细列表) |
invoiceLists.quantity | string | 数量(明细列表) |
invoiceLists.unitPrice | string | 单价(明细列表) |
invoiceLists.amount | string | 金额(明细列表) |
invoiceLists.taxRate | string | 税率(明细列表) |
invoiceLists.tax | string | 税额(明细列表) |
drawerName | string | 开票人 |
invoiceType | int | 发票类型 |
qrLists | object | 二维码信息 |
qrLists.qrInfo | string | 其他信息(二维码) |
qrLists.billingDate | string | 开票日期(二维码) |
qrLists.amountTax | string | 价税合计(二维码) |
qrLists.invoiceNumber | string | 发票号码(二维码) |
coord | object | 坐标集 |
coord.titleCoord | array | 发票抬头坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.billingDateCoord | array | 开票日期坐标 |
coord.purchaserNameCoord | array | 购方名称坐标 |
coord.purchaserTaxNoCoord | array | 购方纳税人识别号坐标 |
coord.salesNameCoord | array | 销方名称坐标 |
coord.salesTaxNoCoord | array | 销方纳税人识别号坐标 |
coord.amountCoord | array | 合计金额坐标 |
coord.taxCoord | array | 合计税额坐标 |
coord.amountTaxCoord | array | 价税合计坐标 |
coord.amountTaxCNCoord | array | 价税合计(大写)坐标 |
coord.invoiceListsCoord | array | 明细列表坐标 |
coord.drawerNameCoord | array | 开票人坐标 |
coord.qrListsCoord | array | 二维码坐标 |
二十八、一图多票
{
"imgOrgsize": [3487, 2452],
"orientation": 0,
"region": [992, 691, 1959, 1295],
"regionFourPoint": [992, 691, 1959, 691, 1959, 1295, 992, 1295],
"regionFourPointOri": [992, 691, 1959, 691, 1959, 1295, 992, 1295],
"title": "上海公共交通卡股份有限公司",
"invoiceCode": "131001862101",
"invoiceNumber": "03482248",
"amount": "200.0",
"redSeal": "1",
"province": "上海市",
"city": "上海市",
"invoiceType": 23,
"coord": {
"titleCoord": [1207, 753, 1930, 753, 1930, 831, 1207, 831],
"invoiceCodeCoord": [1225, 1076, 1632, 1076, 1632, 1131, 1225, 1131],
"invoiceNumberCoord": [1240, 1160, 1498, 1160, 1498, 1207, 1240, 1207],
"amountCoord": [1397, 974, 1660, 977, 1660, 1068, 1396, 1066],
"redSealCoord": [1660, 1073, 1891, 1073, 1891, 1254, 1660, 1254]
}
}
payload.output_text_result.text 字段base64解码后信息如下:
字段 | 类型 | 说明 |
---|---|---|
imgOrgsize | array | 识别图像尺寸 |
orientation | int | 旋转角度(矫正) |
region | array | 裁剪图片坐标 |
regionFourPoint | array | 4点坐标 |
regionFourPointOri | array | 旋转后4点坐标 |
title | string | 标题 |
invoiceCode | string | 发票代码 |
invoiceNumber | string | 发票号码 |
amount | string | 金额 |
redSeal | string | 红章 |
province | string | 省份 |
city | string | 城市 |
invoiceType | int | 发票类型 |
coord | object | 坐标信息 |
coord.titleCoord | array | 标题坐标 |
coord.invoiceCodeCoord | array | 发票代码坐标 |
coord.invoiceNumberCoord | array | 发票号码坐标 |
coord.amountCoord | array | 金额坐标 |
coord.redSealCoord | array | 发票专用章坐标 |
#发票类型
类型值 | 描述 | 类型值 | 描述 | 类型值 | 描述 |
---|---|---|---|---|---|
1 | 增值税专用发票 | 4 | 增值税普通发票 | 10 | 增值税普通发票(电子) |
14 | 增值税普通发票(通行费) | 11 | 增值税普通发票(卷式) | 15 | 二手车统一销售发票 |
20 | 火车票 | 22 | 船票 | 23 | 定额发票 |
24 | 机打发票 | 25 | 出租车发票 | 26 | 客运汽车 |
27 | 航空运输电子客票行程单 | 28 | 过路费发票 | 21 | 区块链发票 |
8 | 增值税电子专用发票 | 34 | 非税收入统一票据 | 35 | 海关专用缴款书 |
31 | 滴滴出行行程单 | 36 | 通用电子发票 | 9 | 电子发票(增值税专用发票) |
37 | 税收完税证明 | 39 | 退票费报销凭证 | 83 | 全电普票 |
3 | 机动车销售统一发票 | 38 | 医疗票据 | 33 | 货物清单 |
#错误码列表
错误码示例:
{
"code":10003,
"message":"WrapperInitErr;errno=101", //errno为引擎错误码
"sid":"ocr00088c7d@dx170194697e9a11d902"
}
平台通用错误码
错误码 | 错误描述 | 说明 | 处理策略 |
---|---|---|---|
10003 | invalid service operation | 平台通用错误码 | 提交工单 |
10004 | invalid session mode | session模式非法 | 提交工单 |
10008 | service instance invalid | 句柄错误(忽略) | 提交工单 |
10009 | input invalid data | 输入数据非法 | 提交工单 |
10010 | service license not enough | 授权不足 | 提交工单 |
10019 | service read buffer timeout, session timeout | session 超时 | 提交工单 |
10043 | Syscall AudioCodingDecode error | 音频解码失败 | 检查aue参数,如果为speex,请确保音频是speex音频并分段压缩且与帧大小一致 |
10101 | engine inavtive | 引擎回话已结束(忽略) | 提交工单 |
10114 | session timeout | session超时 | 会话时间超时,检查是否发送数据时间超过了60s |
10118 | server cannot parse response data | 服务端无法解析后端响应数据 | 提交工单 |
10139 | invalid param | 参数错误 | 提交工单 |
10160 | parse request json error | 请求数据格式非法 | 检查请求数据是否是合法的json |
10161 | parse base64 string error | base64解码失败 | 检查发送的数据是否使用base64编码了 |
10163 | param validate error:... | 参数校验失败 | 具体原因见详细的描述 |
10200 | read data timeout | 读取数据超时 | 检查是否累计10s未发送数据并且未关闭连接 |
10221 | no useful connecton | 服务端没有可用连接 | 提交工单 |
10222 | Remote LB,cannot find valued lb | LB找不到有效节点 | 提交工单 |
10223 | RemoteLB: can't find valued addr | lb 找不到节点 | 提交工单 |
10225 | Finder: can't find busin service | 找不到atmos | 提交工单 |
10300 | seqBuffer empty right now | 排序缓冲区为空 | 提交工单 |
10301 | seq channel already closed | 排序channel已关闭 | 提交工单 |
10313 | invalid appid | appid和apikey不匹配 | 检查appid是否合法 |
10317 | invalid version | 版本非法 | 提交工单 |
10400 | marshal pb message fail | pb 协议序列化错误 | 提交工单 |
10401 | unmarshal pb message fail | pb 协议反序列化错误 | 提交工单 |
10500 | fin routine | 内部同步错误 | 提交工单 |
10600 | nil event | 事件异常错误 | 提交工单 |
10700 | not authority | 引擎异常 | 提交工单 |
11200 | auth no license | 功能未授权 | 提交工单 |
11201 | auth no enough license | 日流控超限 | 提交工单 |
11503 | server error :atmos return an error data | 服务内部响应数据错误 | 提交工单 |
11502 | server error: too many datas in resp | 服务配置错误 | 提交工单 |
100001~100010 | WrapperInitErr | 调用引擎时出现错误 | 提交工单 |