Skip to content

Commit

Permalink
stupid syntax error in dataset compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed Nov 21, 2024
1 parent 8c25514 commit 741e113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kraken/lib/arrow_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def _extract_line(xml_record, skip_empty_lines: bool = True, legacy_polygons: bo
lines = []
try:
im = Image.open(xml_record.imagename)
if is_bitonal(im):
im = im.convert('1')
if is_bitonal(im):
im = im.convert('1')
except (OSError, FileNotFoundError, UnidentifiedImageError):
return lines, None, None
for idx, rec in enumerate(xml_record.lines):
Expand Down

0 comments on commit 741e113

Please sign in to comment.