From 5e11fcae01f4d1f3b8d370d3cac111a57c044f55 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 15 Apr 2019 10:13:08 +0200 Subject: [PATCH] Rename output directories. --- ocr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ocr b/ocr index 1cdc4c6..0eaaf83 100755 --- a/ocr +++ b/ocr @@ -85,9 +85,9 @@ class OCRWorkflow(WorkflowRunner): for job in self.jobs: create_output_directories_job_number += 1 cmd = 'mkdir -p "%s" "%s" "%s" "%s" "%s" "%s"' % ( - os.path.join(job["output_dir"], "tmp", "binarized"), + os.path.join(job["output_dir"], "tmp", "binarized_png"), os.path.join(job["output_dir"], "tmp", "hocr"), - os.path.join(job["output_dir"], "tmp", "normalized"), + os.path.join(job["output_dir"], "tmp", "normalized_png"), os.path.join(job["output_dir"], "tmp", "pdf"), os.path.join(job["output_dir"], "tmp", "tiff"), os.path.join(job["output_dir"], "tmp", "txt") @@ -239,11 +239,11 @@ class OCRWorkflow(WorkflowRunner): cleanup_job_counter += 1 cmd = 'mv "%s"/*.bin.png "%s" && mv "%s"/*.hocr "%s" && mv "%s"/*.nrm.png "%s" && mv "%s"/*.pdf "%s" && mv "%s"/*.tif "%s" && mv "%s"/*.txt "%s"' % ( os.path.join(job["output_dir"], "tmp"), - os.path.join(job["output_dir"], "tmp", "binarized"), + os.path.join(job["output_dir"], "tmp", "binarized_png"), os.path.join(job["output_dir"], "tmp"), os.path.join(job["output_dir"], "tmp", "hocr"), os.path.join(job["output_dir"], "tmp"), - os.path.join(job["output_dir"], "tmp", "normalized"), + os.path.join(job["output_dir"], "tmp", "normalized_png"), os.path.join(job["output_dir"], "tmp"), os.path.join(job["output_dir"], "tmp", "pdf"), os.path.join(job["output_dir"], "tmp"),