Skip to content

Commit 36f13e7

Browse files
committed
build process container
1 parent a01d523 commit 36f13e7

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed

image-build-process/Dockerfile

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,13 @@ FROM python:3.7
33

44
RUN apt-get update
55
RUN apt-get install ffmpeg libsm6 libxext6 -y
6-
# ENV LANG=en_US.utf8
7-
# ENV LANG=C.UTF-8
86

9-
# ENV PYTHONUNBUFFERED=TRUE
10-
# ENV PYTHONDONTWRITEBYTECODE=TRUE
11-
# ENV PATH="/opt/program:${PATH}"
7+
COPY ocr_data_generator/ /opt/program/ocr_data_generator
128

13-
# RUN pip3 install --upgrade pip
9+
WORKDIR /opt/program
10+
RUN cd ./ocr_data_generator && pip install -r requirements.txt
1411

15-
# ## install paddlepaddle framework
16-
# RUN pip3 install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple
17-
# RUN pip3 install paddleocr==2.0.1
1812

19-
# ## clone PaddleOCR source code
20-
# RUN git clone -b release/2.1 https://github.com/PaddlePaddle/PaddleOCR.git /opt/program/
21-
22-
23-
# #download pretrained model for finetunine
24-
# RUN mkdir /opt/program/pretrain/
25-
# RUN cd /opt/program/pretrain/
26-
# RUN wget -P /opt/program/pretrain/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_train.tar && tar -xf /opt/program/pretrain/ch_ppocr_mobile_v2.0_rec_train.tar -C /opt/program/pretrain/ && rm -rf /opt/program/pretrain/ch_ppocr_mobile_v2.0_rec_train.tar
27-
28-
# Set up the program in the image
29-
RUN git clone https://github.com/catwhiskers/ocr_data_generator.git
30-
31-
#WORKDIR /opt/program
32-
RUN cd ./ocr_data_generator && pip install -r requirements.txt && python generate_data.py seto_font train data/ZH_1.txt setofont
33-
34-
35-
# ENTRYPOINT ["python3", "train.py"]
3613

3714

3815

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
numpy==1.16.4
2+
opencv-python==4.3.0.38
3+
imutils==0.5.3
4+
trdg
5+
scipy==1.3.1
6+
glog
7+
matplotlib
8+
zxing
9+
fitz
10+
PyMuPDF
11+
fontTools
12+
tqdm==4.42.1
13+
shapely
14+
imgaug
15+
pyclipper
16+
lmdb
947 KB
Binary file not shown.
12.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)