Skip to content

Commit

Permalink
Print which file is being segmented in CLI output
Browse files Browse the repository at this point in the history
Fixes #636.
  • Loading branch information
mittagessen committed Aug 29, 2024
1 parent 412e625 commit 1db0c04
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 @@ -139,7 +139,7 @@ def segmenter(legacy, models, text_direction, scale, maxcolseps, black_colseps,
mask = Image.open(mask)
except IOError as e:
raise click.BadParameter(str(e))
message('Segmenting\t', nl=False)
message(f'Segmenting {ctx.meta["orig_file"]}\t', nl=False)
try:
if legacy:
res = pageseg.segment(im,
Expand Down

0 comments on commit 1db0c04

Please sign in to comment.