Skip to content

Commit

Permalink
crash in segmentation_overlay script with xml input
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed May 14, 2024
1 parent c09b872 commit 940b49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kraken/contrib/segmentation_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def cli(model, text_direction, repolygonize, files):
if model is None:
for doc in files:
click.echo(f'Processing {doc} ', nl=False)
data = xml.XMLPage(doc)
data = xml.XMLPage(doc).to_container()
if repolygonize:
im = Image.open(data.imagename).convert('L')
lines = data.lines
Expand Down

0 comments on commit 940b49d

Please sign in to comment.