支持网约车行程单全部字段的识别,包括:服务商、申请日期、行程开始时间、行程结束时间、行程人手机号、总金额等字段。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ocr:RecognizeRideHailingItinerary |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Url |
string |
否 |
图片链接(长度不超 2048 字节,不支持 base64) |
https://img.alicdn.com/imgextra/i1/O1CN01ePLJiZ1n8CTylKsn3_!!6000000005044-2-tps-194-260.png |
| body |
string |
否 |
图片二进制字节流,最大 10MB |
图片二进制 |
支持的图片格式
PNG、JPG、JPEG、BMP、GIF、TIFF、WebP
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求唯一 ID |
43A29C77-405E-4CC0-BC55-EE694AD00655 |
| 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. |
返回数据说明
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."
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。