mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-26 20:19:53 +02:00
🎨 Use TOOL constant convention from the other OCR-D processors
This commit is contained in:
parent
b8129c6425
commit
dc38f0ee51
1 changed files with 2 additions and 1 deletions
|
@ -15,13 +15,14 @@ from ocrd_utils import getLogger, concat_padded, MIMETYPE_PAGE
|
|||
|
||||
from ocrd_calamari.config import OCRD_TOOL, TF_CPP_MIN_LOG_LEVEL
|
||||
|
||||
TOOL = 'ocrd-calamari-recognize'
|
||||
log = getLogger('processor.CalamariRecognize')
|
||||
|
||||
|
||||
class CalamariRecognize(Processor):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargs['ocrd_tool'] = OCRD_TOOL['tools']['ocrd-calamari-recognize']
|
||||
kwargs['ocrd_tool'] = OCRD_TOOL['tools'][TOOL]
|
||||
kwargs['version'] = OCRD_TOOL['version']
|
||||
super(CalamariRecognize, self).__init__(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue