diff --git a/README.md b/README.md index 29adbf3..cb370b3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Introduction -This offers a OCR-D compliant workspace processor for the functionality of Calamari OCR. +**ocrd_calamari** offers a [OCR-D](https://ocr-d.de) compliant workspace processor for the functionality of Calamari OCR. It uses OCR-D workspaces (METS) with [PAGE XML](https://github.com/PRImA-Research-Lab/PAGE-XML) documents as input and output. This processor only operates on the text line level and so needs a line segmentation (and by extension a binarized image) as its input. diff --git a/ocrd_calamari/recognize.py b/ocrd_calamari/recognize.py index cf57e62..9884433 100644 --- a/ocrd_calamari/recognize.py +++ b/ocrd_calamari/recognize.py @@ -27,7 +27,6 @@ from ocrd_utils import ( from ocrd_calamari.config import OCRD_TOOL, TF_CPP_MIN_LOG_LEVEL TOOL = 'ocrd-calamari-recognize' -log = getLogger('processor.CalamariRecognize') class CalamariRecognize(Processor): @@ -51,6 +50,7 @@ class CalamariRecognize(Processor): """ Performs the recognition. """ + log = getLogger('processor.CalamariRecognize') assert_file_grp_cardinality(self.input_file_grp, 1) assert_file_grp_cardinality(self.output_file_grp, 1)