zzzDavid / ICDAR-2019-SROIE

ICDAR 2019 Robust Reading Challenge on Scanned Receipts OCR and Information Extraction
MIT License
384 stars 132 forks source link

task2 img = Image.open(buf).convert('L')OSError: cannot identify image file <_io.BytesIO object at 0x7f20e6463a98> #10

Open wjw-2017 opened 4 years ago

wjw-2017 commented 4 years ago

Traceback (most recent call last): File "/root/code/ICDAR-2019-SROIE-master/task2/dataset.py", line 55, in getitem img = Image.open(buf).convert('L') File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/PIL/Image.py", line 2519, in open % (filename if filename else fp)) OSError: cannot identify image file <_io.BytesIO object at 0x7f20e6463a98>