Skip to content

Comments

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

Open
santokalayil wants to merge 5 commits intoOlafenwaMoses:masterfrom
santokalayil:master
Open

Adding webp, tiff, bmp to allowed_extensions list in imageai/Detection/__init__.py#816
santokalayil wants to merge 5 commits intoOlafenwaMoses:masterfrom
santokalayil:master

Conversation

@santokalayil
Copy link

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.

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
Copy link

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

@santokalayil
Copy link
Author

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.

Allowed extensions in opencv read list were ["jpg", "jpeg", "png"]. webp, bmp, tiff extensions also can be read by opencv. Therefore adding webp to the allowed_extension list.
@santokalayil santokalayil changed the title Adding webp to allowed_extensions list in imageai/Detection/__init__.py Adding webp, tiff, bmp to allowed_extensions list in imageai/Detection/__init__.py Jun 7, 2023
@santokalayil
Copy link
Author

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

Copy link
Author

@santokalayil santokalayil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check once the new changes and approve if these changes are fine.

@santokalayil
Copy link
Author

any updates on this change?

@OlafenwaMoses
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants