Skip to content

Commit

Permalink
Image size order regression in --no-segmentation mode
Browse files Browse the repository at this point in the history
Fixes #630
  • Loading branch information
mittagessen committed Jul 29, 2024
1 parent 42366c7 commit 514e11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kraken/kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 514e11f

Please sign in to comment.