Removed unnecessary variable.

This commit is contained in:
Patrick Jentsch 2018-11-07 13:51:40 +01:00
parent 2e5c8b0327
commit ae7bd0c51e

View File

@ -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"))