RecognizeRideHailingItinerary - 网约车行程单识别

支持网约车行程单全部字段的识别,包括:服务商、申请日期、行程开始时间、行程结束时间、行程人手机号、总金额等字段。

调试

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

授权信息

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

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

请求参数

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

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

https://img.alicdn.com/imgextra/i1/O1CN01ePLJiZ1n8CTylKsn3_!!6000000005044-2-tps-194-260.png
bodybyte

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

图片二进制

支持的图片格式

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

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求唯一 ID

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

返回数据

{"data":{"serviceProvider":"滴滴出行","applicationDate":"","startTime":"","endTime":"","phoneNumber":"","totalAmount":"","rideDetails":[{"Number":"","carType":"","pickUpTime":"","city":"","startPlace":"","endPlace":"","mileage":"","amount":"","remarks":""}]},"ftype":0,"height":260,"orgHeight":260,"orgWidth":194,"prism_keyValueInfo":[{"key":"serviceProvider","keyProb":99,"value":"滴滴出行","valuePos":[{"x":120,"y":11},{"x":120,"y":21},{"x":57,"y":20},{"x":57,"y":10}],"valueProb":99},{"key":"applicationDate","keyProb":100,"value":"","valueProb":100},{"key":"startTime","keyProb":91,"value":"","valuePos":[{"x":94,"y":46},{"x":94,"y":50},{"x":75,"y":50},{"x":75,"y":46}],"valueProb":91},{"key":"endTime","keyProb":65,"value":"","valuePos":[{"x":112,"y":46},{"x":112,"y":50},{"x":95,"y":50},{"x":95,"y":46}],"valueProb":65},{"key":"phoneNumber","keyProb":100,"value":"","valueProb":100},{"key":"totalAmount","keyProb":100,"value":"","valueProb":100},{"key":"rideDetails","keyProb":100,"value":"[{\"Number\":\"\",\"carType\":\"\",\"pickUpTime\":\"\",\"city\":\"\",\"startPlace\":\"\",\"endPlace\":\"\",\"mileage\":\"\",\"amount\":\"\",\"remarks\":\"\"}]","valueProb":100}],"sliceRect":{"x0":6,"y0":72,"x1":186,"y1":72,"x2":186,"y2":156,"x3":6,"y3":156},"width":194}
Codestring

错误码

noPermission
Messagestring

错误提示

You are not authorized to perform this operation.

返回数据说明

serviceProvider 服务商
applicationDate 申请日期
startTime 行程开始时间
endTime 行程结束时间
phoneNumber 行程人手机号
totalAmount 总金额
rideDetails 行程详单
Number 序号
carType 车型
pickUpTime 上车时间
city 城市
startPlace  起点
endPlace 终点
mileage 里程
amount 金额
remarks 备注
angle              角度:0-360,0 表示向上,90 表示向右,180 表示向下,270 度表示向左
height            算法矫正图片后的高度
width             算法矫正图片后的宽度
orgHeight      原图的高度
orgWidth       原图的宽度
----------------------------------------prism_keyValueInfo 文字块数组内的字段说明---------------------------------------
valuePos 外矩形四个点的坐标按顺时针排列,左上、右上、右下、左下

示例

正常返回示例

JSON格式

{
  "RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655",
  "Data": "{\"data\":{\"serviceProvider\":\"滴滴出行\",\"applicationDate\":\"\",\"startTime\":\"\",\"endTime\":\"\",\"phoneNumber\":\"\",\"totalAmount\":\"\",\"rideDetails\":[{\"Number\":\"\",\"carType\":\"\",\"pickUpTime\":\"\",\"city\":\"\",\"startPlace\":\"\",\"endPlace\":\"\",\"mileage\":\"\",\"amount\":\"\",\"remarks\":\"\"}]},\"ftype\":0,\"height\":260,\"orgHeight\":260,\"orgWidth\":194,\"prism_keyValueInfo\":[{\"key\":\"serviceProvider\",\"keyProb\":99,\"value\":\"滴滴出行\",\"valuePos\":[{\"x\":120,\"y\":11},{\"x\":120,\"y\":21},{\"x\":57,\"y\":20},{\"x\":57,\"y\":10}],\"valueProb\":99},{\"key\":\"applicationDate\",\"keyProb\":100,\"value\":\"\",\"valueProb\":100},{\"key\":\"startTime\",\"keyProb\":91,\"value\":\"\",\"valuePos\":[{\"x\":94,\"y\":46},{\"x\":94,\"y\":50},{\"x\":75,\"y\":50},{\"x\":75,\"y\":46}],\"valueProb\":91},{\"key\":\"endTime\",\"keyProb\":65,\"value\":\"\",\"valuePos\":[{\"x\":112,\"y\":46},{\"x\":112,\"y\":50},{\"x\":95,\"y\":50},{\"x\":95,\"y\":46}],\"valueProb\":65},{\"key\":\"phoneNumber\",\"keyProb\":100,\"value\":\"\",\"valueProb\":100},{\"key\":\"totalAmount\",\"keyProb\":100,\"value\":\"\",\"valueProb\":100},{\"key\":\"rideDetails\",\"keyProb\":100,\"value\":\"[{\\\"Number\\\":\\\"\\\",\\\"carType\\\":\\\"\\\",\\\"pickUpTime\\\":\\\"\\\",\\\"city\\\":\\\"\\\",\\\"startPlace\\\":\\\"\\\",\\\"endPlace\\\":\\\"\\\",\\\"mileage\\\":\\\"\\\",\\\"amount\\\":\\\"\\\",\\\"remarks\\\":\\\"\\\"}]\",\"valueProb\":100}],\"sliceRect\":{\"x0\":6,\"y0\":72,\"x1\":186,\"y1\":72,\"x2\":186,\"y2\":156,\"x3\":6,\"y3\":156},\"width\":194}",
  "Code": "noPermission",
  "Message": "You are not authorized to perform this operation."
}

错误码

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

变更历史

变更时间变更内容概要操作
暂无变更历史