From 9f3c71a118e07f137687751db193b25e96c11ea7 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Fri, 12 Apr 2019 15:36:47 +0200
Subject: [PATCH] Fehler behoben
---
ocr | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ocr b/ocr
index b54d8d9..4e70c4d 100755
--- a/ocr
+++ b/ocr
@@ -145,7 +145,7 @@ class OCRWorkflow(WorkflowRunner):
tesseract_job_number = 0
for job in self.jobs:
# This list is empty if you don't wait for ocropus_nlbin_jobs to complete
- for file in filter(lambda x: self.skipBinarization or x.endswith(".bin.png"), os.listdir(os.path.join(job["output_dir"], "tmp", "tiff_files" if self.skipBinarization else "ocropus-nlbin")):
+ for file in filter(lambda x: self.skipBinarization or x.endswith(".bin.png"), os.listdir(os.path.join(job["output_dir"], "tmp", "tiff_files" if self.skipBinarization else "ocropus-nlbin"))):
tesseract_job_number += 1
cmd = 'tesseract "%s" "%s" -l "%s" hocr pdf txt' % (
os.path.join(job["output_dir"], "tmp", "tiff_files" if self.skipBinarization else "ocropus-nlbin", file),