文档

RecognizeHotelConsume - 酒店流水识别

更新时间:

酒店流水识别。

调试

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

授权信息

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

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

请求参数

名称类型必填描述示例值
Urlstring

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

https://img.alicdn.com/tfs/TB1Wo7eXAvoK1RjSZFDXXXY3pXa-2512-3509.jpg
bodybyte

图片二进制字节流,最大 10MB

图片二进制

支持的图片格式

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

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求唯一 ID

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

返回数据

{"data": {"fax": "+862162121xxx", "phone": "+862162121xxx", "postCode": "200051", "roomNo": "3209", "checkInDate": "28OCT20", "departureDate": "30OCT20", "memberNumber": "XXXXXX574L", "totalConsumption": "1,000.00", "name": "享敬的陈庆雷先生", "roomType": "", "numberOfGuests": "", "roomRate": "", "address": "", "consumptionDetails": [{"date": "28OCT20", "item": "房费", "consumption": "500.00", "payment": ""}, {"date": "29QQT20", "item": "房费", "consumption": "500.00", "payment": ""}, {"date": "30QQT20", "item": "支付宝XXXXXXXXXXXXX8512", "consumption": "", "payment": "1,000.00"}]}, "height": 2605, "orgHeight": 2605, "orgWidth": 1974, "prism_keyValueInfo": [{"key": "fax", "keyProb": 100, "value": "+862162121888", "valuePos": [{"x": 1163, "y": 317}, {"x": 1380, "y": 298}, {"x": 1382, "y": 322}, {"x": 1166, "y": 342}], "valueProb": 100}, {"key": "phone", "keyProb": 100, "value": "+862162121234", "valuePos": [{"x": 1158, "y": 281}, {"x": 1375, "y": 266}, {"x": 1377, "y": 295}, {"x": 1159, "y": 309}], "valueProb": 100}, {"key": "postCode", "keyProb": 100, "value": "200051", "valuePos": [{"x": 1336, "y": 2253}, {"x": 1434, "y": 2246}, {"x": 1436, "y": 2274}, {"x": 1339, "y": 2282}], "valueProb": 100}, {"key": "roomNo", "keyProb": 100, "value": "3209", "valuePos": [{"x": 1478, "y": 395}, {"x": 1553, "y": 392}, {"x": 1554, "y": 419}, {"x": 1480, "y": 423}], "valueProb": 100}, {"key": "checkInDate", "keyProb": 99, "value": "28OCT20", "valuePos": [{"x": 1480, "y": 435}, {"x": 1632, "y": 425}, {"x": 1634, "y": 454}, {"x": 1481, "y": 465}], "valueProb": 99}, {"key": "departureDate", "keyProb": 100, "value": "30OCT20", "valuePos": [{"x": 1487, "y": 477}, {"x": 1635, "y": 466}, {"x": 1637, "y": 493}, {"x": 1490, "y": 505}], "valueProb": 100}, {"key": "memberNumber", "keyProb": 100, "value": "XXXXXX574L", "valuePos": [{"x": 383, "y": 1302}, {"x": 556, "y": 1283}, {"x": 558, "y": 1307}, {"x": 386, "y": 1327}], "valueProb": 100}, {"key": "totalConsumption", "keyProb": 100, "value": "1,000.00", "valuePos": [{"x": 1459, "y": 1135}, {"x": 1580, "y": 1126}, {"x": 1582, "y": 1155}, {"x": 1462, "y": 1165}], "valueProb": 100}, {"key": "name", "keyProb": 100, "value": "享敬的陈庆雷先生", "valuePos": [{"x": 53, "y": 523}, {"x": 275, "y": 511}, {"x": 277, "y": 548}, {"x": 54, "y": 559}], "valueProb": 100}, {"key": "roomType", "keyProb": 100, "value": "", "valueProb": 100}, {"key": "numberOfGuests", "keyProb": 100, "value": "", "valueProb": 100}, {"key": "roomRate", "keyProb": 100, "value": "", "valueProb": 100}, {"key": "address", "keyProb": 100, "value": "", "valueProb": 100}, {"key": "consumptionDetails", "keyProb": 100, "value": "[{\"date\":\"28OCT20\",\"item\":\"房费\",\"consumption\":\"500.00\",\"payment\":\"\"},{\"date\":\"29QQT20\",\"item\":\"房费\",\"consumption\":\"500.00\",\"payment\":\"\"},{\"date\":\"30QQT20\",\"item\":\"支付宝XXXXXXXXXXXXX8512\",\"consumption\":\"\",\"payment\":\"1,000.00\"}]", "valueProb": 100}], "width": 1974}
Codestring

状态码

200
Messagestring

详细信息

message

返回数据说明

fax  传真
phone  电话
postCode  邮编
roomNo  房号
checkInDate  入住日期
departureDate  离店日期
memberNumber  会员号码
totalConsumption  消费总计
name  姓名
roomType  房型
numberOfGuests  住店人数
roomRate  房费
address  地址
consumptionDetails  消费详单
--------------------------consumptionDetails 数组内的字段说明--------------------------
date  日期
item  项目
consumption  消费
payment  付款

示例

正常返回示例

JSON格式

{
  "RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655",
  "Data": "{\"data\": {\"fax\": \"+862162121xxx\", \"phone\": \"+862162121xxx\", \"postCode\": \"200051\", \"roomNo\": \"3209\", \"checkInDate\": \"28OCT20\", \"departureDate\": \"30OCT20\", \"memberNumber\": \"XXXXXX574L\", \"totalConsumption\": \"1,000.00\", \"name\": \"享敬的陈庆雷先生\", \"roomType\": \"\", \"numberOfGuests\": \"\", \"roomRate\": \"\", \"address\": \"\", \"consumptionDetails\": [{\"date\": \"28OCT20\", \"item\": \"房费\", \"consumption\": \"500.00\", \"payment\": \"\"}, {\"date\": \"29QQT20\", \"item\": \"房费\", \"consumption\": \"500.00\", \"payment\": \"\"}, {\"date\": \"30QQT20\", \"item\": \"支付宝XXXXXXXXXXXXX8512\", \"consumption\": \"\", \"payment\": \"1,000.00\"}]}, \"height\": 2605, \"orgHeight\": 2605, \"orgWidth\": 1974, \"prism_keyValueInfo\": [{\"key\": \"fax\", \"keyProb\": 100, \"value\": \"+862162121888\", \"valuePos\": [{\"x\": 1163, \"y\": 317}, {\"x\": 1380, \"y\": 298}, {\"x\": 1382, \"y\": 322}, {\"x\": 1166, \"y\": 342}], \"valueProb\": 100}, {\"key\": \"phone\", \"keyProb\": 100, \"value\": \"+862162121234\", \"valuePos\": [{\"x\": 1158, \"y\": 281}, {\"x\": 1375, \"y\": 266}, {\"x\": 1377, \"y\": 295}, {\"x\": 1159, \"y\": 309}], \"valueProb\": 100}, {\"key\": \"postCode\", \"keyProb\": 100, \"value\": \"200051\", \"valuePos\": [{\"x\": 1336, \"y\": 2253}, {\"x\": 1434, \"y\": 2246}, {\"x\": 1436, \"y\": 2274}, {\"x\": 1339, \"y\": 2282}], \"valueProb\": 100}, {\"key\": \"roomNo\", \"keyProb\": 100, \"value\": \"3209\", \"valuePos\": [{\"x\": 1478, \"y\": 395}, {\"x\": 1553, \"y\": 392}, {\"x\": 1554, \"y\": 419}, {\"x\": 1480, \"y\": 423}], \"valueProb\": 100}, {\"key\": \"checkInDate\", \"keyProb\": 99, \"value\": \"28OCT20\", \"valuePos\": [{\"x\": 1480, \"y\": 435}, {\"x\": 1632, \"y\": 425}, {\"x\": 1634, \"y\": 454}, {\"x\": 1481, \"y\": 465}], \"valueProb\": 99}, {\"key\": \"departureDate\", \"keyProb\": 100, \"value\": \"30OCT20\", \"valuePos\": [{\"x\": 1487, \"y\": 477}, {\"x\": 1635, \"y\": 466}, {\"x\": 1637, \"y\": 493}, {\"x\": 1490, \"y\": 505}], \"valueProb\": 100}, {\"key\": \"memberNumber\", \"keyProb\": 100, \"value\": \"XXXXXX574L\", \"valuePos\": [{\"x\": 383, \"y\": 1302}, {\"x\": 556, \"y\": 1283}, {\"x\": 558, \"y\": 1307}, {\"x\": 386, \"y\": 1327}], \"valueProb\": 100}, {\"key\": \"totalConsumption\", \"keyProb\": 100, \"value\": \"1,000.00\", \"valuePos\": [{\"x\": 1459, \"y\": 1135}, {\"x\": 1580, \"y\": 1126}, {\"x\": 1582, \"y\": 1155}, {\"x\": 1462, \"y\": 1165}], \"valueProb\": 100}, {\"key\": \"name\", \"keyProb\": 100, \"value\": \"享敬的陈庆雷先生\", \"valuePos\": [{\"x\": 53, \"y\": 523}, {\"x\": 275, \"y\": 511}, {\"x\": 277, \"y\": 548}, {\"x\": 54, \"y\": 559}], \"valueProb\": 100}, {\"key\": \"roomType\", \"keyProb\": 100, \"value\": \"\", \"valueProb\": 100}, {\"key\": \"numberOfGuests\", \"keyProb\": 100, \"value\": \"\", \"valueProb\": 100}, {\"key\": \"roomRate\", \"keyProb\": 100, \"value\": \"\", \"valueProb\": 100}, {\"key\": \"address\", \"keyProb\": 100, \"value\": \"\", \"valueProb\": 100}, {\"key\": \"consumptionDetails\", \"keyProb\": 100, \"value\": \"[{\\\"date\\\":\\\"28OCT20\\\",\\\"item\\\":\\\"房费\\\",\\\"consumption\\\":\\\"500.00\\\",\\\"payment\\\":\\\"\\\"},{\\\"date\\\":\\\"29QQT20\\\",\\\"item\\\":\\\"房费\\\",\\\"consumption\\\":\\\"500.00\\\",\\\"payment\\\":\\\"\\\"},{\\\"date\\\":\\\"30QQT20\\\",\\\"item\\\":\\\"支付宝XXXXXXXXXXXXX8512\\\",\\\"consumption\\\":\\\"\\\",\\\"payment\\\":\\\"1,000.00\\\"}]\", \"valueProb\": 100}], \"width\": 1974}",
  "Code": "200",
  "Message": "message"
}

错误码

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

变更历史

变更时间变更内容概要操作
2022-03-16新增 OpenAPI看变更集

SDK 调用 通过 SDK 调用此接口的示例请参考开发者中心

  • 本页导读 (0)
文档反馈