Skip to content

Commit

Permalink
Merge pull request #134 from bertsky/v3-api
Browse files Browse the repository at this point in the history
OCR-D v3 API: fixes
  • Loading branch information
kba authored Sep 2, 2024
2 parents aef46a4 + 17eafc1 commit 9b274dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,5 @@ Repository = "https://github.com/qurator-spk/eynollah.git"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[tool.setuptools.packages.find]
where = ["qurator"]

[tool.setuptools.package-data]
"*" = ["*.json", '*.yml', '*.xml', '*.xsd']
4 changes: 2 additions & 2 deletions qurator/eynollah/ocrd-tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"executable": "ocrd-eynollah-segment",
"categories": ["Layout analysis"],
"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"],
"output_file_grp": ["OCR-D-SEG-LINE"],
"input_file_grp_cardinality": 1,
"output_file_grp_cardinality": 1,
"steps": ["layout/segmentation/region", "layout/segmentation/line"],
"parameters": {
"models": {
Expand Down
4 changes: 0 additions & 4 deletions qurator/eynollah/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

class EynollahProcessor(Processor):

@property
def metadata_filename(self) -> str:
return 'eynollah/ocrd-tool.json'

def setup(self) -> None:
# for caching models
self.models = None
Expand Down

0 comments on commit 9b274dc

Please sign in to comment.