Rename output directories.

This commit is contained in:
Patrick Jentsch 2019-04-15 10:13:08 +02:00
parent 8e6868194d
commit 5e11fcae01

8
ocr
View File

@ -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"),