mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-26 17:24:17 +00:00
Removed unnecessary variable.
This commit is contained in:
parent
2e5c8b0327
commit
ae7bd0c51e
@ -31,10 +31,6 @@ from pyflow import WorkflowRunner
|
||||
|
||||
|
||||
|
||||
ocropusnlbin_bin = "/usr/local/bin/ocropus-nlbin"
|
||||
|
||||
|
||||
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser(
|
||||
"Performs OCR of (historical) documents utilizing OCRopus for preprocessing and Tesseract OCR \
|
||||
@ -212,8 +208,7 @@ class OCRWorkflow(WorkflowRunner):
|
||||
ocropusnlbin_job_number = 0
|
||||
for job in self.pdfImageJobs["images"] + self.pdfImageJobs["pdf"]:
|
||||
ocropusnlbin_job_number += 1
|
||||
cmd = "%s -Q %i -o %s %s" % (
|
||||
ocropusnlbin_bin,
|
||||
cmd = "ocropus-nlbin -Q %i -o %s %s" % (
|
||||
self.nCores,
|
||||
os.path.join(job["output_dir"], "tmp", "ocropus-nlbin"),
|
||||
os.path.join(job["output_dir"], "tmp", "tiff_files", os.path.basename(job["path"]).rsplit(".", 1)[0] + "-*.tif"))
|
||||
|
Loading…
Reference in New Issue
Block a user