Sign inSign up

624647769/logist-web

By 624647769

•Updated over 3 years ago

Image
1

129

624647769/logist-web repository overview

⁠物流单识别


⁠版本说明
  • 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。

⁠安装需求
  • Docker
⁠最低配置要求
  • CPU: 1核
  • 内存: 2G
  • SWAP: 2G
⁠服务器部署
# 从 dockerhub pull。请把<_version_>更换为指定版本
docker pull 624647769/logist-web:<_version_>

# 运行镜像
docker run -it --rm -p 8000:8000 --name logist-web 624647769/logist-web:<_version_>

⁠接口文档

⁠物流单
⁠POST 图片识别

POST /detect

⁠请求参数
file: File
# 请求格式
multipart/form-data;
名称位置类型必选说明
filebodybinary是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
  }
}
⁠返回结果
状态码状态码含义说明数据模型
200OK⁠成功Inline
⁠返回数据结构

状态码 200

名称类型说明
codeinteger状态码
msgstring响应消息
dataobject响应体
raw_outobject识别结果集合
owner_ori_nostring货主原始单号
page_of[string]页码。集合,第一个参数表示当前页,第二个参数表示总数
sell_datestring销售日期
delivery_datestring发货日期
delivery_warestring发货仓库
purchaser_namestring供货单位
ship_addressstring发货地址
out_ware_idstring出库清单
dispatch_nostring派车单号
speed_timenumber识别耗时,单位:秒

Tag summary

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