fix/readme-no-checkpoint
Gerber, Mike 4 years ago
commit 795826fa43

@ -8,7 +8,7 @@
## Introduction ## 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 This processor only operates on the text line level and so needs a line segmentation (and by extension a binarized
image) as its input. image) as its input.

@ -27,7 +27,6 @@ from ocrd_utils import (
from ocrd_calamari.config import OCRD_TOOL, TF_CPP_MIN_LOG_LEVEL from ocrd_calamari.config import OCRD_TOOL, TF_CPP_MIN_LOG_LEVEL
TOOL = 'ocrd-calamari-recognize' TOOL = 'ocrd-calamari-recognize'
log = getLogger('processor.CalamariRecognize')
class CalamariRecognize(Processor): class CalamariRecognize(Processor):
@ -51,6 +50,7 @@ class CalamariRecognize(Processor):
""" """
Performs the recognition. Performs the recognition.
""" """
log = getLogger('processor.CalamariRecognize')
assert_file_grp_cardinality(self.input_file_grp, 1) assert_file_grp_cardinality(self.input_file_grp, 1)
assert_file_grp_cardinality(self.output_file_grp, 1) assert_file_grp_cardinality(self.output_file_grp, 1)

Loading…
Cancel
Save