PaddleOCR
来自ling
https://github.com/XimfengYao/docker-PaddleOCR/blob/main/Dockerfile
https://hub.docker.com/r/987846/paddleocr
https://gitee.com/paddlepaddle/PaddleOCR
https://blog.csdn.net/weixin_43272781/article/details/113408464
https://gitee.com/paddlepaddle/PaddleOCR/blob/v2.0.0/deploy/docker/hubserving/cpu/Dockerfile
https://shentuzhigang.blog.csdn.net/article/details/114034077
https://gitee.com/paddlepaddle/PaddleOCR/blob/release/2.0/doc/doc_ch/installation.md
cd /data/PaddleOCRDocler sudo docker run --name ppocr -v $PWD:/paddle -it paddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82 /bin/bash python3 -m pip install paddlepaddle==2.0.0 -i https://mirror.baidu.com/pypi/simple git clone https://gitee.com/paddlepaddle/PaddleOCR cd PaddleOCR pip3 install -r requirements.txt
cd /data/PaddleOCR/deploy/docker/hubserving/cpu docker build -t paddleocr:cpu .
hubserving
https://gitee.com/paddlepaddle/PaddleOCR/tree/release/2.1/deploy/hubserving
https://aistudio.baidu.com/aistudio/projectdetail/507159
cd /data/PaddleOCR pip3 install -r requirements.txt -i https://mirror.baidu.com/pypi/simple
pip3 install opencv-python --upgrade -i https://mirror.baidu.com/pypi/simple pip3 install scikit-build --upgrade -i https://mirror.baidu.com/pypi/simple pip3 install cmake upgrade -i https://mirror.baidu.com/pypi/simple
pip3 install paddlepaddle --upgrade -i https://mirror.baidu.com/pypi/simple pip3 install paddlehub --upgrade -i https://mirror.baidu.com/pypi/simple
dockerfile
# Version: 2.0.0
FROM registry.baidubce.com/paddlepaddle/paddle:2.0.0
# PaddleOCR base on Python3.7
RUN pip3.7 install --upgrade pip -i https://mirror.baidu.com/pypi/simple
RUN pip3.7 install paddlehub --upgrade -i https://mirror.baidu.com/pypi/simple
RUN git clone https://gitee.com/PaddlePaddle/PaddleOCR.git /PaddleOCR
WORKDIR /PaddleOCR
RUN pip3.7 install -r requirements.txt -i https://mirror.baidu.com/pypi/simple
RUN mkdir -p /PaddleOCR/inference/
# Download ocr detect model(light version). if you want to change normal version, you can change ch_ppocr_mobile_v1.1_det_infer to ch_ppocr_server_v1.1_det_infer, also remember change det_model_dir in deploy/hubserving/ocr_system/params.py)
ADD https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar /PaddleOCR/inference/
RUN tar xf /PaddleOCR/inference/ch_ppocr_mobile_v2.0_det_infer.tar -C /PaddleOCR/inference/
# Download direction classifier(light version). If you want to change normal version, you can change ch_ppocr_mobile_v1.1_cls_infer to ch_ppocr_mobile_v1.1_cls_infer, also remember change cls_model_dir in deploy/hubserving/ocr_system/params.py)
ADD https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar /PaddleOCR/inference/
RUN tar xf /PaddleOCR/inference/ch_ppocr_mobile_v2.0_cls_infer.tar -C /PaddleOCR/inference/
# Download ocr recognition model(light version). If you want to change normal version, you can change ch_ppocr_mobile_v1.1_rec_infer to ch_ppocr_server_v1.1_rec_infer, also remember change rec_model_dir in deploy/hubserving/ocr_system/params.py)
ADD https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_infer.tar /PaddleOCR/inference/
RUN tar xf /PaddleOCR/inference/ch_ppocr_mobile_v2.0_rec_infer.tar -C /PaddleOCR/inference/
RUN hub install deploy/hubserving/ocr_system/
RUN hub install deploy/hubserving/ocr_cls/
RUN hub install deploy/hubserving/ocr_det/
RUN hub install deploy/hubserving/ocr_rec/
EXPOSE 8866
CMD ["/bin/bash","-c","hub serving start --modules ocr_system ocr_cls ocr_det ocr_rec -p 8866 "]