inerplat / JoYurIZ-Classifier

Classify Joyuris using CNN deep learning
MIT License
9 stars 5 forks source link

Image file open error #1

Closed inerplat closed 4 years ago

inerplat commented 5 years ago

If the file extension differs from the contents of the actual file, an error occurs. Don't trust the extension when using file.

ex) '.bmp' image file has '.jpg' extension, you can open this file on image viewer(windows default) but your code makes error

inerplat commented 5 years ago

It is a serious error when considering deployment, but can be tolerated in the proof of concept.🤔

It will be fixed later to analyze file header.🧚‍♀️

inerplat commented 5 years ago

New Features: Using the first frame of the gif image

The first frame of the gif image could be converted to numpy.ndarray using the pillow library. Therefore, gif image can be used to process the same as the existing jpg file.

image

inerplat commented 4 years ago

get mime using python-magic