From f3fe886335d752b0c07f2fae337bbea059703d4e Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 15 Apr 2019 10:33:20 +0200
Subject: [PATCH] Update
---
ocr | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/ocr b/ocr
index 80f5b95..a57bfee 100755
--- a/ocr
+++ b/ocr
@@ -250,14 +250,14 @@ class OCRWorkflow(WorkflowRunner):
os.path.join(job["output_dir"], "tmp"),
os.path.join(job["output_dir"], "tmp", "txt")
)
- if not self.skipBinarization:
- cmd += ' && mv "%s"/*.bin.png "%s" && mv "%s"/*.nrm.png "%s"' % (
- os.path.join(job["output_dir"], "tmp"),
- os.path.join(job["output_dir"], "tmp", "binarized_png"),
- os.path.join(job["output_dir"], "tmp"),
- os.path.join(job["output_dir"], "tmp", "normalized_png"),
- )
- cleanup_jobs.append(self.addTask(label="cleanup_job_-_%i" % (cleanup_job_counter), command=cmd, dependencies=hocr_to_tei_jobs + pdf_merge_jobs + txt_merge_jobs))
+ if not self.skipBinarization:
+ cmd += ' && mv "%s"/*.bin.png "%s" && mv "%s"/*.nrm.png "%s"' % (
+ os.path.join(job["output_dir"], "tmp"),
+ os.path.join(job["output_dir"], "tmp", "binarized_png"),
+ os.path.join(job["output_dir"], "tmp"),
+ os.path.join(job["output_dir"], "tmp", "normalized_png"),
+ )
+ cleanup_jobs.append(self.addTask(label="cleanup_job_-_%i" % (cleanup_job_counter), command=cmd, dependencies=hocr_to_tei_jobs + pdf_merge_jobs + txt_merge_jobs))
else:
for job in self.jobs:
cleanup_job_counter += 1