Merge branch 'ocrd-wrappers' of https://github.com/qurator-spk/eynollah into ocrd-wrappers

This commit is contained in:
kba 2026-04-28 14:31:24 +02:00
commit 5c6e075975

View file

@ -1,6 +1,8 @@
from functools import cached_property from functools import cached_property
from pathlib import Path from pathlib import Path
from typing import Optional from typing import Optional
from click import command
from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor
from ocrd.workspace import page_from_file from ocrd.workspace import page_from_file
from ocrd_models import OcrdFileType, OcrdPage from ocrd_models import OcrdFileType, OcrdPage
@ -89,3 +91,8 @@ class EynollahRecognizeProcessor(Processor):
local_filename=output_filename, local_filename=output_filename,
mimetype=page_ns, mimetype=page_ns,
) )
@command()
@ocrd_cli_options
def main(*args, **kwargs):
return ocrd_cli_wrap_processor(EynollahRecognizeProcessor, *args, **kwargs)