visual-layer / fastdup

fastdup is a powerful free tool designed to rapidly extract valuable insights from your image & video datasets. Assisting you to increase your dataset images & labels quality and reduce your data operations costs at an unparalleled scale.
Other
1.54k stars 74 forks source link

[Bug]: python side fails to read heic image #224

Closed dbickson closed 1 year ago

dbickson commented 1 year ago

What happened?

AssertionError Failed to read image /homes/mfoler/IMG_1234.HEIC /homes {'save_artifacts': False, 'jupyter_html': False, 'load_crops': False, 'draw_bbox': False, 'sort_by': 'comp_size', 'lazy_load': False, 'run_hierarchical': False, 'selection_strategy': 0, 'input_dir': '/homes'}

What did you expect to see?

Python should be able to read heic images. Should try this:

pip3 install pillow-heif
from PIL import Image
from pillow_heif import register_heif_opener

register_heif_opener()

image = Image.open('image.heic')

What version of fastdup were you runnning on?

1.22

What version of Python were you running on?

Python 3.8

Operating System

mac osx

Reproduction steps

No response

Relevant log output

No response

Attach a screenshot [Optional]

No response

Contact Details [Optional]

No response

dbickson commented 1 year ago

Fixed in 1.24