OlafenwaMoses / ImageAI

A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities
https://www.genxr.co/#products
MIT License
8.48k stars 2.18k forks source link

Adding `webp, tiff, bmp` to allowed_extensions list in imageai/Detection/__init__.py #816

Open santokalayil opened 1 year ago

santokalayil commented 1 year ago

Allowed extensions in opencv read list were ["jpg", "jpeg", "png"]. .webp extension also also can be read by opencv. Therefore adding webp to the allowed_extension list.

Pikamander2 commented 1 year ago

Is it possible to add BMP and TIFF too? OpenCV appears to support them as well.

santokalayil commented 1 year ago

Is it possible to add BMP and TIFF too? OpenCV appears to support them as well.

Yes. Let me check them first. if those extensions are supporting. will add them as well.

santokalayil commented 1 year ago

The extensions tiff, bmp were added also the allowed_extension list for cv2.imread method.

santokalayil commented 1 year ago

any updates on this change?

OlafenwaMoses commented 1 year ago

@santokalayil can you add test cases for this change by