Merge pull request #134 from bertsky/v3-api

OCR-D v3 API: fixes
pull/130/head
Konstantin Baierer 4 months ago committed by GitHub
commit 9b274dcc20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,8 +37,5 @@ Repository = "https://github.com/qurator-spk/eynollah.git"
[tool.setuptools.dynamic] [tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]} dependencies = {file = ["requirements.txt"]}
[tool.setuptools.packages.find]
where = ["qurator"]
[tool.setuptools.package-data] [tool.setuptools.package-data]
"*" = ["*.json", '*.yml', '*.xml', '*.xsd'] "*" = ["*.json", '*.yml', '*.xml', '*.xsd']

@ -6,8 +6,8 @@
"executable": "ocrd-eynollah-segment", "executable": "ocrd-eynollah-segment",
"categories": ["Layout analysis"], "categories": ["Layout analysis"],
"description": "Segment page into regions and lines and do reading order detection with eynollah", "description": "Segment page into regions and lines and do reading order detection with eynollah",
"input_file_grp": ["OCR-D-IMG", "OCR-D-SEG-PAGE", "OCR-D-GT-SEG-PAGE"], "input_file_grp_cardinality": 1,
"output_file_grp": ["OCR-D-SEG-LINE"], "output_file_grp_cardinality": 1,
"steps": ["layout/segmentation/region", "layout/segmentation/line"], "steps": ["layout/segmentation/region", "layout/segmentation/line"],
"parameters": { "parameters": {
"models": { "models": {

@ -6,10 +6,6 @@ from .eynollah import Eynollah
class EynollahProcessor(Processor): class EynollahProcessor(Processor):
@property
def metadata_filename(self) -> str:
return 'eynollah/ocrd-tool.json'
def setup(self) -> None: def setup(self) -> None:
# for caching models # for caching models
self.models = None self.models = None

Loading…
Cancel
Save