mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-26 19:14:18 +00:00
Update
This commit is contained in:
parent
84bcac0fc7
commit
a533ef76c6
2
ocr
2
ocr
@ -176,7 +176,7 @@ class OCRWorkflow(WorkflowRunner):
|
|||||||
' Tesseract runs fastest with four cores. So we run it with either four
|
' Tesseract runs fastest with four cores. So we run it with either four
|
||||||
' or, if there are less then four cores available for this workflow, the
|
' or, if there are less then four cores available for this workflow, the
|
||||||
' available core number. The deu_frak language model only supports
|
' available core number. The deu_frak language model only supports
|
||||||
' single core processing, so we use use only one core for this language.
|
' single core processing, so we use use only one core for this.
|
||||||
'''
|
'''
|
||||||
ocr_job_nCores = 1 if self.lang == "deu_frak" else min(4, self.nCores)
|
ocr_job_nCores = 1 if self.lang == "deu_frak" else min(4, self.nCores)
|
||||||
for job in self.jobs:
|
for job in self.jobs:
|
||||||
|
Loading…
Reference in New Issue
Block a user