Skip to content

Commit

Permalink
self.logger: adapt to bertsky/core#10
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Aug 19, 2024
1 parent a8a859b commit 0e30138
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions ocrd_kraken/binarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ class KrakenBinarize(Processor):
def executable(self):
return 'ocrd-kraken-binarize'

def setup(self):
self.logger = getLogger('processor.KrakenBinarize')

def process_page_pcgts(self, *input_pcgts: Optional[OcrdPage], page_id: Optional[str] = None) -> OcrdPageResult:
"""Binarize the pages/regions/lines with Kraken.
Expand Down
1 change: 0 additions & 1 deletion ocrd_kraken/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def setup(self):
Load model, set predict function
"""

self.logger = getLogger('processor.KrakenRecognize')
import torch
from kraken.rpred import rpred
from kraken.lib.models import load_any
Expand Down
1 change: 0 additions & 1 deletion ocrd_kraken/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def setup(self):
"""
Load models
"""
self.logger = getLogger('processor.KrakenSegment')
kwargs = {}
kwargs['text_direction'] = self.parameter['text_direction']
self.use_legacy = self.parameter['use_legacy']
Expand Down

0 comments on commit 0e30138

Please sign in to comment.