ImageAI
ImageAI copied to clipboard
Adding `webp, tiff, bmp` to allowed_extensions list in imageai/Detection/__init__.py
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.
Is it possible to add BMP and TIFF too? OpenCV appears to support them as well.
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.
The extensions tiff, bmp
were added also the allowed_extension list for cv2.imread method.
any updates on this change?
@santokalayil can you add test cases for this change by
- adding sample image files with the added extensions
- add/update test cases for the added image files?