diff --git a/ocrd_kraken/binarize.py b/ocrd_kraken/binarize.py index d8da6a4..49ceeca 100644 --- a/ocrd_kraken/binarize.py +++ b/ocrd_kraken/binarize.py @@ -11,8 +11,6 @@ from ocrd_models.ocrd_page import AlternativeImageType, OcrdPage, to_xml from ocrd_modelfactory import page_from_file -from ocrd_kraken.config import OCRD_TOOL - class KrakenBinarize(Processor): diff --git a/ocrd_kraken/cli.py b/ocrd_kraken/cli.py deleted file mode 100644 index ead681b..0000000 --- a/ocrd_kraken/cli.py +++ /dev/null @@ -1,10 +0,0 @@ -import click - -from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor -from ocrd_kraken.binarize import KrakenBinarize - -@click.command() -@ocrd_cli_options -def ocrd_kraken_binarize(*args, **kwargs): - return ocrd_cli_wrap_processor(KrakenBinarize, *args, **kwargs) - diff --git a/ocrd_kraken/config.py b/ocrd_kraken/config.py deleted file mode 100644 index 1816957..0000000 --- a/ocrd_kraken/config.py +++ /dev/null @@ -1,5 +0,0 @@ -import json -from ocrd_utils import resource_filename - -with open(resource_filename('ocrd_kraken', 'ocrd-tool.json'), 'r', encoding='utf-8') as f: - OCRD_TOOL = json.load(f) diff --git a/ocrd_kraken/recognize.py b/ocrd_kraken/recognize.py index 4e97504..6daf0a6 100644 --- a/ocrd_kraken/recognize.py +++ b/ocrd_kraken/recognize.py @@ -9,7 +9,6 @@ from ocrd import Processor from ocrd_utils import ( - getLogger, coordinates_of_segment, coordinates_for_segment, bbox_from_polygon, @@ -32,13 +31,13 @@ WordType, GlyphType, CoordsType, - to_xml ) from ocrd_models.ocrd_page_generateds import ( ReadingDirectionSimpleType, TextLineOrderSimpleType ) + class KrakenRecognize(Processor): @property