🐛 Add tessdata_best Tesseract models again

pull/27/head
Gerber, Mike 5 years ago
parent 5e8cd47798
commit 88c29cef68

@ -60,11 +60,13 @@ RUN pip3 install --no-cache-dir --upgrade pip && \
RUN mkdir -p /var/lib/calamari-models
COPY data/calamari-models/GT4HistOCR /var/lib/calamari-models/GT4HistOCR
RUN mkdir -p $TESSDATA_PREFIX
RUN curl -sSL -O https://qurator-data.de/mirror/github.com/tesseract-ocr/tessdata_best/archive/$TESSDATA_BEST_VERSION.tar.gz && \
tar xzf $TESSDATA_BEST_VERSION.tar.gz && \
mv tessdata_best-$TESSDATA_BEST_VERSION/* $TESSDATA_PREFIX/ && \
rm -rf $TESSDATA_BEST_VERSION.tar.gz
COPY data/tesseract-models/GT4HistOCR/GT4HistOCR_2000000.traineddata $TESSDATA_PREFIX/
COPY data/textline_detection /var/lib/textline_detection
RUN tesseract --list-langs
# Install requirements
COPY requirements.txt /tmp/

@ -6,6 +6,6 @@ ocrd_tesserocr >= 0.8.1
ocrd_calamari >= 0.0.6
https://github.com/qurator-spk/sbb_textline_detector/archive/689822c.tar.gz
https://github.com/qurator-spk/sbb_textline_detector/archive/8618be2.tar.gz
https://github.com/qurator-spk/dinglehopper/archive/c305539.tar.gz
https://github.com/qurator-spk/dinglehopper/archive/745095e.tar.gz

Loading…
Cancel
Save