Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smarthec
smarthec_backend
Commits
b42fc01e
Commit
b42fc01e
authored
Feb 11, 2021
by
Robert Sachunsky
Browse files
move to new std resource directory
parent
86c23ae7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
b42fc01e
...
...
@@ -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
...
...
README.md
View file @
b42fc01e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment