RecognizeRollTicket
支持对卷票上包括发票代码、发票号码、开票日期、发票金额、校验码、大写金额、销售方税号、购买方税号等关键字段结构化识别输出
服务地址:
华东1(杭州)
输入参数
只看必填
Url图片链接(长度不超2048字节
body图片二进制文件
插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

请求参数

字段名称字段详情
Urlstring

图片链接(长度不超 2048 字节,不支持 base64)

示例值:https://img.alicdn.com/tfs/TB1Y2ryJKT2gK0jSZFvXXXnFXXa-438-934.png字符长度 <= 2048
bodystring<binary>

图片二进制文件,最大 10MB,与 URL 二选一。 使用 HTTP 方式调用,把图片二进制文件放到 HTTP body 中上传即可。 使用 SDK 的方式调用,把图片放到 SDK 的 body 中即可。

示例值:图片二进制文件

请求说明

支持的图片格式

  • PNG、JPG、JPEG、BMP、GIF、TIFF、WebP、PDF、OFD

返回参数

字段名称字段详情
RequestIdstring

请求唯一 ID

示例值:43A29C77-405E-4CC0-BC55-EE694AD00655
Datastring

返回数据

示例值:{ "data": { "title": "用增值税普通发票(卷票)", "invoiceCode": "041001800107", "invoiceNumber": "04594258", "machineCode": "661718338084", "sellerName": "中国石化销售有限公司河南许昌石油分公司第二经营部", "sellerTaxNumber": "914110237241033719", "purchaserName": "上海恒企教育培训有限公司许昌许都广场分公司", "purchaserTaxCode": "212", "invoiceDate": "2019年4月27日", "cashier": "安冬梅", "totalAmountInWords": "陆佰元整", "totalAmount": "600.00", "checkCode": "65584298472538424744", "invoiceDetails": [{ "itemName": "*预付卡销售*加油卡充值款", "quantity": "1.00", "unitPrice": "600.00", "amount": "600.00" }, { "itemName": "*预付卡销售*积分*预付卡销售*积分", "quantity": "1.0", "unitPrice": "13.78", "amount": "13.78" }] }, "height": 934, "orgHeight": 934, "orgWidth": 438, "prism_keyValueInfo": [{ "key": "title", "keyProb": 95, "value": "用增值税普通发票(卷票)", "valuePos": [{ "x": 89, "y": 61 }, { "x": 90, "y": 23 }, { "x": 435, "y": 40 }, { "x": 434, "y": 78 }], "valueProb": 95 }, { "key": "invoiceCode", "keyProb": 99, "value": "041001800107", "valuePos": [{ "x": 130, "y": 199 }, { "x": 132, "y": 175 }, { "x": 304, "y": 187 }, { "x": 303, "y": 210 }], "valueProb": 99 }, { "key": "invoiceNumber", "keyProb": 99, "value": "04594258", "valuePos": [{ "x": 132, "y": 230 }, { "x": 133, "y": 210 }, { "x": 247, "y": 216 }, { "x": 245, "y": 237 }], "valueProb": 99 }, { "key": "machineCode", "keyProb": 100, "value": "661718338084", "valuePos": [{ "x": 294, "y": 254 }, { "x": 294, "y": 238 }, { "x": 394, "y": 243 }, { "x": 393, "y": 258 }], "valueProb": 100 }, { "key": "sellerName", "keyProb": 100, "value": "中国石化销售有限公司河南许昌石油分公司第二经营部", "valuePos": [{ "x": 124, "y": 290 }, { "x": 125, "y": 260 }, { "x": 370, "y": 266 }, { "x": 369, "y": 297 }], "valueProb": 100 }, { "key": "sellerTaxNumber", "keyProb": 98, "value": "914110237241033719", "valuePos": [{ "x": 139, "y": 323 }, { "x": 140, "y": 310 }, { "x": 293, "y": 312 }, { "x": 293, "y": 326 }], "valueProb": 98 }, { "key": "purchaserName", "keyProb": 100, "value": "上海恒企教育培训有限公司许昌许都广场分公司", "valuePos": [{ "x": 125, "y": 349 }, { "x": 365, "y": 349 }, { "x": 365, "y": 382 }, { "x": 125, "y": 382 }], "valueProb": 100 }, { "key": "purchaserTaxCode", "keyProb": 70, "value": "212", "valuePos": [{ "x": 138, "y": 394 }, { "x": 138, "y": 410 }, { "x": 38, "y": 411 }, { "x": 37, "y": 396 }], "valueProb": 70 }, { "key": "invoiceDate", "keyProb": 100, "value": "2019年4月27日", "valuePos": [{ "x": 106, "y": 345 }, { "x": 107, "y": 329 }, { "x": 217, "y": 331 }, { "x": 217, "y": 348 }], "valueProb": 100 }, { "key": "cashier", "keyProb": 100, "value": "安冬梅", "valuePos": [{ "x": 274, "y": 348 }, { "x": 275, "y": 332 }, { "x": 324, "y": 333 }, { "x": 324, "y": 350 }], "valueProb": 100 }, { "key": "totalAmountInWords", "keyProb": 100, "value": "陆佰元整", "valuePos": [{ "x": 120, "y": 804 }, { "x": 190, "y": 800 }, { "x": 191, "y": 818 }, { "x": 120, "y": 821 }], "valueProb": 100 }, { "key": "totalAmount", "keyProb": 100, "value": "600.00", "valuePos": [{ "x": 121, "y": 785 }, { "x": 181, "y": 783 }, { "x": 182, "y": 796 }, { "x": 121, "y": 799 }], "valueProb": 100 }, { "key": "checkCode", "keyProb": 96, "value": "65584298472538424744", "valuePos": [{ "x": 95, "y": 827 }, { "x": 283, "y": 817 }, { "x": 284, "y": 831 }, { "x": 96, "y": 841 }], "valueProb": 96 }, { "key": "invoiceDetails", "keyProb": 100, "value": "[{\"itemName\":\"*预付卡销售*加油卡充值款\",\"quantity\":\"1.00\",\"unitPrice\":\"600.00\",\"amount\":\"600.00\"},{\"itemName\":\"*预付卡销售*积分*预付卡销售*积分\",\"quantity\":\"1.0\",\"unitPrice\":\"13.78\",\"amount\":\"13.78\"}]", "valueProb": 100 }], "width": 438 }
Codestring

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

示例值:noPermission
Messagestring

错误提示(如果识别成功,不会返回此字段)

示例值:You are not authorized to perform this operation.

返回说明

中英文字段映射

invoiceCode          发票代码
invoiceNumber          发票号码
invoiceDate          开票日期
checkCode          校验码
sellerName          销售方名称
sellerTaxNumber          销售方税号
purchaserName          购买方名称
purchaserTaxCode          购买方税号
title          标题
IGNORE          机打号码
machineCode          机器编号
cashier          收款员
totalAmountInWords          合计金额(大写)
totalAmount          合计金额(小写)
invoiceDetails          发票详单
itemName            项目
quantity            数量
unitPrice            单价
amount            金额
变更历史
暂无变更历史