mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 12:19:54 +02:00
commit
9b274dcc20
3 changed files with 2 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue