mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2025-01-13 18:30:33 +00:00
Update
This commit is contained in:
parent
5e43e09beb
commit
f3fe886335
16
ocr
16
ocr
@ -250,14 +250,14 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
os.path.join(job["output_dir"], "tmp"),
|
os.path.join(job["output_dir"], "tmp"),
|
||||||
os.path.join(job["output_dir"], "tmp", "txt")
|
os.path.join(job["output_dir"], "tmp", "txt")
|
||||||
)
|
)
|
||||||
if not self.skipBinarization:
|
if not self.skipBinarization:
|
||||||
cmd += ' && mv "%s"/*.bin.png "%s" && mv "%s"/*.nrm.png "%s"' % (
|
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"),
|
||||||
os.path.join(job["output_dir"], "tmp", "binarized_png"),
|
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", "normalized_png"),
|
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))
|
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:
|
else:
|
||||||
for job in self.jobs:
|
for job in self.jobs:
|
||||||
cleanup_job_counter += 1
|
cleanup_job_counter += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user