Skip to content

Commit d9ccd5f

Browse files
authored
Upgrade easyocr models to v2 (#975)
http://b/182904500
1 parent 60c5cb2 commit d9ccd5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,12 @@ RUN pip install flashtext && \
427427
# Download base easyocr models.
428428
# https://github.com/JaidedAI/EasyOCR#usage
429429
RUN mkdir -p /root/.EasyOCR/model && \
430-
wget --no-verbose "https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/latin.zip" -O /root/.EasyOCR/model/latin.zip && \
430+
wget --no-verbose "https://github.com/JaidedAI/EasyOCR/releases/download/v1.3/latin_g2.zip" -O /root/.EasyOCR/model/latin.zip && \
431431
unzip /root/.EasyOCR/model/latin.zip -d /root/.EasyOCR/model/ && \
432432
rm /root/.EasyOCR/model/latin.zip && \
433+
wget --no-verbose "https://github.com/JaidedAI/EasyOCR/releases/download/v1.3/english_g2.zip" -O /root/.EasyOCR/model/english.zip && \
434+
unzip /root/.EasyOCR/model/english.zip -d /root/.EasyOCR/model/ && \
435+
rm /root/.EasyOCR/model/english.zip && \
433436
wget --no-verbose "https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/craft_mlt_25k.zip" -O /root/.EasyOCR/model/craft_mlt_25k.zip && \
434437
unzip /root/.EasyOCR/model/craft_mlt_25k.zip -d /root/.EasyOCR/model/ && \
435438
rm /root/.EasyOCR/model/craft_mlt_25k.zip && \

0 commit comments

Comments
 (0)