From e4982aff37b9eda9dd419a50ba1a993fbbd76e0a Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Thu, 24 Sep 2020 10:25:47 +0200 Subject: [PATCH 1/3] getLogger per method --- ocrd_calamari/recognize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 3156121ff79c645da6072101699e996b8cb07200 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 1 Oct 2020 13:21:14 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9D=20Let=20intro=20mention=20ocrd?= =?UTF-8?q?=5Fcalamari=20+=20PAGE=20XML,=20link=20to=20OCR-D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 29adbf3..3cf8227 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 [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. From a5d46f0d28c40a5d70004b3042916ec10a6f30f3 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 1 Oct 2020 13:23:44 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=9A=A7=20README:=20Mention=20METS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cf8227..cb370b3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Introduction -**ocrd_calamari** offers a [OCR-D](https://ocr-d.de) compliant workspace processor for the functionality of Calamari OCR. It uses [PAGE XML](https://github.com/PRImA-Research-Lab/PAGE-XML) documents as input and output. +**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.