leaf_focus/ocr/command.py
def ocr_recognise(image_file: Path, annotation_file: Path, predictions_file: Path):
    """Recognise the text in an image."""

    from leaf_focus.ocr.recognise.component import Component

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

    logger = logging.getLogger()
    c = Component(logger)
    c.recognise_text(image_file, annotation_file, predictions_file)

    click.secho("Finished ocr recognise.", bold=True)
Recognise the text in an image.
Recognise the text in an image.
Recognise the text in an image .
def ocr_recognise(image_file: Path, annotation_file: Path, predictions_file: Path):
    from leaf_focus.ocr.recognise.component import Component
    click.secho("Starting ocr recognise.", bold=True)
    logger = logging.getLogger()
    c = Component(logger)
    c.recognise_text(image_file, annotation_file, predictions_file)
    click.secho("Finished ocr recognise.", bold=True)
def ocr_recognise ( image_file : Path , annotation_file : Path , predictions_file : Path ) : from leaf_focus . ocr . recognise . component import Component click . secho ( "Starting ocr recognise." , bold = True ) logger = logging . getLogger ( ) c = Component ( logger ) c . recognise_text ( image_file , annotation_file , predictions_file ) click . secho ( "Finished ocr recognise." , bold = True )
Recognise the text in an image.
Recognise the text in an image .
"""Recognise the text in an image."""
image_file
Path
annotation_file
Path
predictions_file
Path