From ac4b5c2fd85c998d9333856a8fdfc4a087c7dedd Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 22 Sep 2020 17:44:32 +0200 Subject: [PATCH] Add possibility to use an intermediate dir --- Dockerfile | 4 +- ocr | 329 +++++++++++++++++++++++++++------------------------- wrapper/ocr | 7 ++ 3 files changed, 184 insertions(+), 156 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ed80ef..2a299fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,8 +76,10 @@ RUN chmod 644 /usr/local/share/tessdata/*.traineddata ## Install Pipeline ## RUN apt-get install -y --no-install-recommends \ ghostscript \ + python-pip \ python3.7 \ - zip + zip \ + && pip install natsort COPY "hocrtotei" "ocr" "/usr/local/bin/" diff --git a/ocr b/ocr index 10ee021..ab50ebf 100755 --- a/ocr +++ b/ocr @@ -12,11 +12,12 @@ Authors: Patrick Jentsch