mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-27 08:44:17 +00:00
Aktualisieren ocr
This commit is contained in:
parent
fd7ad08e1e
commit
d4218fcd7c
14
ocr
14
ocr
@ -120,14 +120,12 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
ocropusnlbin_jobs = []
|
ocropusnlbin_jobs = []
|
||||||
ocropusnlbin_job_number = 0
|
ocropusnlbin_job_number = 0
|
||||||
for job in self.jobs:
|
for job in self.jobs:
|
||||||
# This list is empty if you don't wait for ocropus_nlbin_jobs to complete
|
ocropusnlbin_job_number += 1
|
||||||
for file in os.listdir(os.path.join(job["output_dir"], "tmp", "tiff_files")):
|
cmd = 'ocropus-nlbin -o "%s" "%s"/*' % (
|
||||||
ocropusnlbin_job_number += 1
|
os.path.join(job["output_dir"], "tmp", "ocropus-nlbin"),
|
||||||
cmd = 'ocropus-nlbin -o "%s" "%s"' % (
|
os.path.join(job["output_dir"], "tmp", "tiff_files")
|
||||||
os.path.join(job["output_dir"], "tmp", "ocropus-nlbin"),
|
)
|
||||||
os.path.join(job["output_dir"], "tmp", "tiff_files", file)
|
ocropusnlbin_jobs.append(self.addTask(label="ocropusnlbin_job_-_%i" % (ocropusnlbin_job_number), command=cmd, dependencies=split_jobs, nCores=max(1, self.nCores / length(self.jobs)))
|
||||||
)
|
|
||||||
ocropusnlbin_jobs.append(self.addTask(label="ocropusnlbin_job_-_%i" % (ocropusnlbin_job_number), command=cmd, dependencies=split_jobs))
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Task "tesseract_job": perform OCR on binarized images
|
# Task "tesseract_job": perform OCR on binarized images
|
||||||
|
Loading…
Reference in New Issue
Block a user