From 6db7f70446127560609184a9edeb6df0c393b675 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 17 Mar 2021 14:26:24 +0100
Subject: [PATCH] Add back german language models
---
Dockerfile | 2 +-
ocr | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index b04f4d0..fc02719 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -68,7 +68,7 @@ RUN wget --no-check-certificate --quiet \
&& cd - > /dev/null \
&& rm -r "tesseract-${TESSERACT_VERSION}" "${TESSERACT_VERSION}.tar.gz"
-ENV TESSERACT_MODELS="ara,chi_tra,dan,ell,eng,enm,fra,frk,frm,ita,por,rus,spa"
+ENV TESSERACT_MODELS="ara,chi_tra,dan,deu,ell,eng,enm,fra,frk,frm,ita,por,rus,spa"
ENV TESSDATA_BEST_VERSION=4.1.0
RUN wget --no-check-certificate --quiet \
"https://github.com/tesseract-ocr/tessdata_best/archive/${TESSDATA_BEST_VERSION}.tar.gz" \
diff --git a/ocr b/ocr
index 1a2bbc2..71927a2 100755
--- a/ocr
+++ b/ocr
@@ -322,7 +322,7 @@ def parse_args():
type=int)
parser.add_argument('--n-cores',
default=min(4, multiprocessing.cpu_count()),
- help='Number of CPU threads to be used', # noqa
+ help='Number of CPU threads to be used',
type=int)
parser.add_argument('--zip',
help='Create one zip file per filetype')