1 Star 3 Fork 3

张威 / idcardocr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 487 Bytes
一键复制 编辑 原始数据 按行查看 历史
Raymond Wong 提交于 2019-02-26 22:29 . Update Dockerfile
FROM ubuntu:18.10
ADD . /idcardocr
#ADD tessdata/. /usr/share/tesseract-ocr/tessdata
WORKDIR /idcardocr
RUN export DEBIAN_FRONTEND=noninteractive&&apt update&&apt install python3 python3-pip tesseract-ocr tesseract-ocr-chi-sim libsm6 libxext6 python3-tk -y
RUN pip3 install -r /idcardocr/requirements.txt
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
EXPOSE 8080
CMD PYTHONIOENCODING=utf-8 python3 -u /idcardocr/idcard_recognize.py
Python
1
https://gitee.com/zhwei168/idcardocr.git
git@gitee.com:zhwei168/idcardocr.git
zhwei168
idcardocr
idcardocr
master

搜索帮助