mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-05-01 03:32:00 +02:00
Merge branch 'ocrd-wrappers' of https://github.com/qurator-spk/eynollah into ocrd-wrappers
This commit is contained in:
commit
5c6e075975
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue