网约车行程单识别

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String 是 RecognizeRideHailingItinerary

系统规定参数。取值:RecognizeRideHailingItinerary。

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

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

String 否 图片二进制

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

返回数据

名称 类型 示例值 描述
RequestId String 43A29C77-405E-4CC0-BC55-EE694AD00655

请求唯一 ID

Data String {"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 String noPermission

错误码

Message String You are not authorized to perform this operation.

错误提示

示例

请求示例

http(s)://[Endpoint]/?Action=RecognizeRideHailingItinerary
&Url=https://img.alicdn.com/imgextra/i1/O1CN01ePLJiZ1n8CTylKsn3_!!6000000005044-2-tps-194-260.png
&body=图片二进制
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<RecognizeRideHailingItineraryResponse>
    <RequestId>43A29C77-405E-4CC0-BC55-EE694AD00655</RequestId>
    <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}</Data>
</RecognizeRideHailingItineraryResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/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}"
}

返回示例补充说明

返回数据说明
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 外矩形四个点的坐标按顺时针排列,左上、右上、右下、左下

错误码

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