ImageAI icon indicating copy to clipboard operation
ImageAI copied to clipboard

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

Open santokalayil opened this issue 1 year ago • 5 comments

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.

santokalayil avatar Jun 07 '23 08:06 santokalayil

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

Pikamander2 avatar Jun 07 '23 08:06 Pikamander2

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 avatar Jun 07 '23 08:06 santokalayil

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

santokalayil avatar Jun 07 '23 08:06 santokalayil

any updates on this change?

santokalayil avatar Jun 19 '23 10:06 santokalayil

@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?

OlafenwaMoses avatar Jun 19 '23 11:06 OlafenwaMoses