mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-26 12:09:52 +02:00
Merge branch 'master' of https://github.com/OCR-D/ocrd_calamari
This commit is contained in:
commit
795826fa43
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue