From 2ecb0218701051e68d661eaa55acbcd62ffe4764 Mon Sep 17 00:00:00 2001 From: Clemens Neudecker <952378+cneud@users.noreply.github.com> Date: Fri, 6 Dec 2019 00:35:11 +0100 Subject: [PATCH 1/2] refactor class name --- qurator/sbb_textline_detector/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qurator/sbb_textline_detector/main.py b/qurator/sbb_textline_detector/main.py index e70e475..245b70b 100644 --- a/qurator/sbb_textline_detector/main.py +++ b/qurator/sbb_textline_detector/main.py @@ -38,7 +38,7 @@ __doc__ = \ """ -class textlineerkenner: +class textline_detector: def __init__(self, image_dir, dir_out, f_name, dir_models): self.image_dir = image_dir # XXX This does not seem to be a directory as the name suggests, but a file self.dir_out = dir_out @@ -1475,7 +1475,7 @@ class textlineerkenner: def main(image, out, model): possibles = globals() # XXX unused? possibles.update(locals()) - x = textlineerkenner(image, out, None, model) + x = textline_detector(image, out, None, model) x.run() From 3b526ef40d9c4d01a61a83cce44ae6011818df5d Mon Sep 17 00:00:00 2001 From: Clemens Neudecker <952378+cneud@users.noreply.github.com> Date: Fri, 6 Dec 2019 02:27:23 +0100 Subject: [PATCH 2/2] refactor class name --- qurator/sbb_textline_detector/ocrd_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qurator/sbb_textline_detector/ocrd_cli.py b/qurator/sbb_textline_detector/ocrd_cli.py index d090e46..272d671 100644 --- a/qurator/sbb_textline_detector/ocrd_cli.py +++ b/qurator/sbb_textline_detector/ocrd_cli.py @@ -12,7 +12,7 @@ from ocrd_models.ocrd_page_generateds import MetadataItemType, LabelsType, Label from ocrd_utils import concat_padded, getLogger, MIMETYPE_PAGE from pkg_resources import resource_string -from qurator.sbb_textline_detector import textlineerkenner +from qurator.sbb_textline_detector import textline_detector log = getLogger('processor.OcrdSbbTextlineDetectorRecognize') @@ -67,7 +67,7 @@ class OcrdSbbTextlineDetectorRecognize(Processor): # Segment the image image_file = self._resolve_image_file(input_file) model = self.parameter['model'] - x = textlineerkenner(image_file, tmp_dirname, file_id, model) + x = textline_detector(image_file, tmp_dirname, file_id, model) x.run() # Read segmentation results