mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-26 19:14:18 +00:00
Rename output directories.
This commit is contained in:
parent
8e6868194d
commit
5e11fcae01
8
ocr
8
ocr
@ -85,9 +85,9 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
for job in self.jobs:
|
for job in self.jobs:
|
||||||
create_output_directories_job_number += 1
|
create_output_directories_job_number += 1
|
||||||
cmd = 'mkdir -p "%s" "%s" "%s" "%s" "%s" "%s"' % (
|
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", "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", "pdf"),
|
||||||
os.path.join(job["output_dir"], "tmp", "tiff"),
|
os.path.join(job["output_dir"], "tmp", "tiff"),
|
||||||
os.path.join(job["output_dir"], "tmp", "txt")
|
os.path.join(job["output_dir"], "tmp", "txt")
|
||||||
@ -239,11 +239,11 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
cleanup_job_counter += 1
|
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"' % (
|
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"),
|
||||||
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"),
|
||||||
os.path.join(job["output_dir"], "tmp", "hocr"),
|
os.path.join(job["output_dir"], "tmp", "hocr"),
|
||||||
os.path.join(job["output_dir"], "tmp"),
|
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"),
|
||||||
os.path.join(job["output_dir"], "tmp", "pdf"),
|
os.path.join(job["output_dir"], "tmp", "pdf"),
|
||||||
os.path.join(job["output_dir"], "tmp"),
|
os.path.join(job["output_dir"], "tmp"),
|
||||||
|
Loading…
Reference in New Issue
Block a user