Commit b42fc01e authored by Robert Sachunsky's avatar Robert Sachunsky
Browse files

move to new std resource directory

parent 86c23ae7
......@@ -9,6 +9,7 @@ MAINTAINER sachunsky@informatik.uni-leipzig.de
# but export them for COPY etc
ENV PREFIX=$PREFIX
ENV VIRTUAL_ENV=$VIRTUAL_ENV
ENV RESDIR=/usr/local/share/ocrd-resources
# make apt run non-interactive during build
ENV DEBIAN_FRONTEND noninteractive
......@@ -21,8 +22,8 @@ RUN apt-get update && \
WORKDIR /build
RUN ln /usr/bin/python3 /usr/bin/python
ENV TESSDATA=${VIRTUAL_ENV}/share/tessdata
RUN mkdir -p $TESSDATA $TESSDATA/script
ENV TESSDATA=${RESDIR}/ocrd-tesserocr-recognize
RUN mkdir -p $RESDIR $TESSDATA $TESSDATA/script
RUN wget -P $TESSDATA http://github.com/tesseract-ocr/tessdata_best/raw/master/deu.traineddata
# replace Tesseract Docker build with version from PPA (with OpenMP):
RUN make -W tesseract install-tesseract TESSERACT_CONFIG='CXXFLAGS="-g -O2 -fPIC"'
......@@ -55,7 +56,7 @@ RUN make -C workflow-configuration install
# add further workflow configurations
COPY *.mk $PREFIX/share/workflow-configuration/
# add model files for classify-formdata-layout
ENV MRCNNDATA=${VIRTUAL_ENV}/share/ocrd_segment
ENV MRCNNDATA=${RESDIR}/ocrd-segment-classify-formdata-layout
RUN mkdir -p $MRCNNDATA
COPY *.h5 $MRCNNDATA/
# configure writing to ocrd.log for profiling
......
......@@ -33,7 +33,7 @@ Install [Docker CE](https://docs.docker.com/install/) and GNU make. Copy `*.h5`
ocrd workflow client -p 7001 process -m brunata-dir2/mets.xml
ocrd workflow client -p 7002 process -m techem-dir/mets.xml
(or equivalently:)
(or equivalently:)
curl -G -d mets=brunata-dir1/mets.xml http://127.0.0.1:7001/process
curl -G -d mets=brunata-dir2/mets.xml http://127.0.0.1:7001/process
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment