mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-27 09:14:17 +00:00
len not length... Thx python
This commit is contained in:
parent
1e740aec66
commit
0a25afbd51
4
ocr
4
ocr
@ -122,11 +122,11 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
for job in self.jobs:
|
for job in self.jobs:
|
||||||
ocropusnlbin_job_number += 1
|
ocropusnlbin_job_number += 1
|
||||||
cmd = 'ocropus-nlbin -Q "%i" -o "%s" "%s"/*' % (
|
cmd = 'ocropus-nlbin -Q "%i" -o "%s" "%s"/*' % (
|
||||||
max(1, int(self.nCores / length(self.jobs))),
|
max(1, int(self.nCores / len(self.jobs))),
|
||||||
os.path.join(job["output_dir"], "tmp", "ocropus-nlbin"),
|
os.path.join(job["output_dir"], "tmp", "ocropus-nlbin"),
|
||||||
os.path.join(job["output_dir"], "tmp", "tiff_files")
|
os.path.join(job["output_dir"], "tmp", "tiff_files")
|
||||||
)
|
)
|
||||||
ocropusnlbin_jobs.append(self.addTask(label="ocropusnlbin_job_-_%i" % (ocropusnlbin_job_number), command=cmd, dependencies=split_jobs, nCores=max(1, int(self.nCores / length(self.jobs)))))
|
ocropusnlbin_jobs.append(self.addTask(label="ocropusnlbin_job_-_%i" % (ocropusnlbin_job_number), command=cmd, dependencies=split_jobs, nCores=max(1, int(self.nCores / len(self.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