赞
踩
基于paddleocr,paddlehub,ocr之后通过java程序进行分析提前信息并暴露api接口,已打包成docker镜像。
体验网址为https://demo.think4code.com/,移动端布局,效果如下
已将镜像上传至百度云盘,地址如下
链接:https://pan.baidu.com/s/14JphJP0NdSCHxh_Hbuwp0Q?pwd=patv
提取码:patv
–来自百度网盘超级会员V3的分享
将paddle-ocr1.0.1.tar.gz下载后上传到服务器中,然后解压
[root@localhost ~]# tar -zxvf paddle-ocr1.0.1.tar.gz
得到paddle-ocr1.0.1.tar
先加载镜像
[root@localhost ~]# docker load -i paddle-ocr1.0.1.tar
74ddd0ec08fa: Loading layer [==================================================>] 238.6 MB/238.6 MB
60a9d177e27a: Loading layer [==================================================>] 3.787 GB/3.787 GB
9943df26b0e8: Loading layer [==================================================>] 48.63 MB/48.63 MB
179852467c97: Loading layer [==================================================>] 27.8 MB/27.8 MB
Loaded image ID: sha256:f68074d45868ca48c9a060dec5926d398ef0c180a4a2f518ca4be97eb681f35d
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> f68074d45868 2 hours ago 4.04 GB
[root@localhost ~]# docker tag f68074d45868 paddle-ocr:1.0.1
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
paddle-ocr 1.0.1 f68074d45868 2 hours ago 4.04 GB
然后创建容器
[root@localhost ~]# docker run -itd -p 8080:8080 -p 8868:8868 --name paddle-ocr paddle-ocr:1.0.1
0b64242b7ca32b177e2477f16694bc58e785f7e9815bf45e06ff7f31f4915003
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0b64242b7ca3 paddle-ocr:1.0.1 "/bin/bash" About a minute ago Up 15 seconds 0.0.0.0:8080->8080/tcp, 0.0.0.0:8868->8868/tcp paddle-ocr
[root@localhost ~]# docker exec -it 0b64242b7ca3 /bin/bash
[root@0b64242b7ca3 /]# sh /root/sh/start_all.sh
[root@0b64242b7ca3 /]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 14:04 ? 00:00:00 /bin/bash
root 16 0 0 14:05 ? 00:00:00 /bin/bash
root 34 0 94 14:05 ? 00:00:01 /usr/bin/python3.8 /usr/local/bin/hub serving start -c /root/PaddleOCR/deploy/hubserving/ocr_system/config.json
root 36 0 99 14:05 ? 00:00:06 java -jar /root/paddle-handler/paddle-handler.jar
root 86 16 0 14:06 ? 00:00:00 ps -ef
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。