mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-27 08:04:18 +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():
|
def parse_arguments():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
"Performs OCR of (historical) documents utilizing OCRopus for preprocessing and Tesseract OCR \
|
"Performs OCR of (historical) documents utilizing OCRopus for preprocessing and Tesseract OCR \
|
||||||
@ -212,8 +208,7 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
ocropusnlbin_job_number = 0
|
ocropusnlbin_job_number = 0
|
||||||
for job in self.pdfImageJobs["images"] + self.pdfImageJobs["pdf"]:
|
for job in self.pdfImageJobs["images"] + self.pdfImageJobs["pdf"]:
|
||||||
ocropusnlbin_job_number += 1
|
ocropusnlbin_job_number += 1
|
||||||
cmd = "%s -Q %i -o %s %s" % (
|
cmd = "ocropus-nlbin -Q %i -o %s %s" % (
|
||||||
ocropusnlbin_bin,
|
|
||||||
self.nCores,
|
self.nCores,
|
||||||
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.basename(job["path"]).rsplit(".", 1)[0] + "-*.tif"))
|
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