How to use the ocrd.decorators.ocrd_cli_options function in ocrd

To help you get started, we’ve selected a few ocrd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OCR-D / core / tests / test_decorators.py View on Github external
@ocrd_cli_options
def cli_param_dumper(*args, **kwargs):      # pylint: disable=unused-argument
    print(json.dumps(kwargs['parameter']))
github OCR-D / ocrd_segment / ocrd_segment / cli.py View on Github external
@ocrd_cli_options
def ocrd_segment_extract_regions(*args, **kwargs):
    return ocrd_cli_wrap_processor(ExtractRegions, *args, **kwargs)
github OCR-D / ocrd_tesserocr / ocrd_tesserocr / cli.py View on Github external
@ocrd_cli_options
def ocrd_tesserocr_deskew(*args, **kwargs):
    return ocrd_cli_wrap_processor(TesserocrDeskew, *args, **kwargs)
github OCR-D / ocrd_tesserocr / ocrd_tesserocr / cli.py View on Github external
@ocrd_cli_options
def ocrd_tesserocr_crop(*args, **kwargs):
    return ocrd_cli_wrap_processor(TesserocrCrop, *args, **kwargs)
github OCR-D / core / ocrd / ocrd / cli / dummy_processor.py View on Github external
@ocrd_cli_options
def cli(*args, **kwargs):
    return ocrd_cli_wrap_processor(DummyProcessor, *args, **kwargs)
github OCR-D / ocrd_tesserocr / ocrd_tesserocr / cli.py View on Github external
@ocrd_cli_options
def ocrd_tesserocr_segment_line(*args, **kwargs):
    return ocrd_cli_wrap_processor(TesserocrSegmentLine, *args, **kwargs)
github OCR-D / ocrd_tesserocr / ocrd_tesserocr / cli.py View on Github external
@ocrd_cli_options
def ocrd_tesserocr_segment_word(*args, **kwargs):
    return ocrd_cli_wrap_processor(TesserocrSegmentWord, *args, **kwargs)
github OCR-D / ocrd_tesserocr / ocrd_tesserocr / cli.py View on Github external
@ocrd_cli_options
def ocrd_tesserocr_segment_region(*args, **kwargs):
    return ocrd_cli_wrap_processor(TesserocrSegmentRegion, *args, **kwargs)
github OCR-D / ocrd_tesserocr / ocrd_tesserocr / cli.py View on Github external
@ocrd_cli_options
def ocrd_tesserocr_recognize(*args, **kwargs):
    return ocrd_cli_wrap_processor(TesserocrRecognize, *args, **kwargs)
github OCR-D / ocrd_segment / ocrd_segment / cli.py View on Github external
@ocrd_cli_options
def ocrd_segment_from_coco(*args, **kwargs):
    return ocrd_cli_wrap_processor(ImportCOCOSegmentation, *args, **kwargs)