0.1.2_beta
新增UI操作。运行时请使用
docker run -it --rm -p 80:80 -p 8000:8000 --name logist-web 624647769/logist-web:<_version_>。在浏览器输入http://ip即可访问。
0.1.0_beta
解决跨域;接口可使用
本项目基于Tr进行开发,旨在构建web服务端,提供OCR物流单识别。本项目运行在CPU。
# 从 dockerhub pull。请把<_version_>更换为指定版本
docker pull 624647769/logist-web:<_version_>
# 运行镜像
docker run -it --rm -p 8000:8000 --name logist-web 624647769/logist-web:<_version_>
POST /detect
file: File
# 请求格式
multipart/form-data;
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| file | body | binary | 是 | none |
curl --location 'http://localhost:8000/detect' \
--form 'file=@"uploadFile.png"'
成功
{
"code": 200,
"msg": "成功",
"data": {
"raw_out": {
"owner_ori_no": null,
"page_of": ["1", "1"],
"sell_date": null,
"delivery_date": null,
"delivery_ware": null,
"purchaser_name": null,
"ship_address": null,
"out_ware_id": null,
"dispatch_no": null
},
"speed_time": 3.66
}
}
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | 成功 | Inline |
状态码 200
| 名称 | 类型 | 说明 |
|---|---|---|
| code | integer | 状态码 |
| msg | string | 响应消息 |
| data | object | 响应体 |
| raw_out | object | 识别结果集合 |
| owner_ori_no | string | 货主原始单号 |
| page_of | [string] | 页码。集合,第一个参数表示当前页,第二个参数表示总数 |
| sell_date | string | 销售日期 |
| delivery_date | string | 发货日期 |
| delivery_ware | string | 发货仓库 |
| purchaser_name | string | 供货单位 |
| ship_address | string | 发货地址 |
| out_ware_id | string | 出库清单 |
| dispatch_no | string | 派车单号 |
| speed_time | number | 识别耗时,单位:秒 |
Content type
Image
Digest
sha256:a82a9b720…
Size
613.2 MB
Last updated
over 3 years ago
docker pull 624647769/logist-web:v0.1.2_beta