leaf_focus/ocr/command.py
def ocr_recognise_many(config_file: Path):
    """Recognise the text in multiple images."""

    if not config_file:
        raise click.UsageError("Must provide config file.")

    from leaf_focus.ocr.recognise.operation import Operation

    click.secho("Starting ocr recognise many.", bold=True)

    config = Config.load(config_file)
    logger = logging.getLogger()
    o = Operation(logger, config.processing_dir)

    o.run_many()

    click.secho("Finished ocr recognise many.", bold=True)

    raise NotImplementedError()
Recognise the text in multiple images.
Recognise the text in multiple images.
Recognise the text in multiple images .
def ocr_recognise_many(config_file: Path):
    if not config_file:
        raise click.UsageError("Must provide config file.")
    from leaf_focus.ocr.recognise.operation import Operation
    click.secho("Starting ocr recognise many.", bold=True)
    config = Config.load(config_file)
    logger = logging.getLogger()
    o = Operation(logger, config.processing_dir)
    o.run_many()
    click.secho("Finished ocr recognise many.", bold=True)
    raise NotImplementedError()
def ocr_recognise_many ( config_file : Path ) : if not config_file : raise click . UsageError ( "Must provide config file." ) from leaf_focus . ocr . recognise . operation import Operation click . secho ( "Starting ocr recognise many." , bold = True ) config = Config . load ( config_file ) logger = logging . getLogger ( ) o = Operation ( logger , config . processing_dir ) o . run_many ( ) click . secho ( "Finished ocr recognise many." , bold = True ) raise NotImplementedError ( )
Recognise the text in multiple images.
Recognise the text in multiple images .
"""Recognise the text in multiple images."""
config_file
Path