From 514e11f920806314bd663f2f22bac6c5dfd2fabf Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Mon, 29 Jul 2024 20:47:31 +0200 Subject: [PATCH] Image size order regression in --no-segmentation mode Fixes #630 --- kraken/kraken.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kraken/kraken.py b/kraken/kraken.py index d6f8f8e22..cb89b8832 100644 --- a/kraken/kraken.py +++ b/kraken/kraken.py @@ -217,7 +217,7 @@ def recognizer(model, pad, no_segmentation, bidi_reordering, tags_ignore, input, imagename=ctx.meta['base_image'], script_detection=False, lines=[BBoxLine(id=str(uuid.uuid4()), - bbox=(0, 0, im.size[1], im.size[0]))]) + bbox=(0, 0, im.width, im.height))]) else: raise click.UsageError('No line segmentation given. Add one with the input or run `segment` first.') elif no_segmentation: