cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
611 stars 198 forks source link

Handle uppercase file extensions (.JPG, .PNG, ...) #109

Closed nilsonholger closed 7 years ago

nilsonholger commented 7 years ago

Trying to load an image file with an uppercase extension leads to a failure (as described by @RockyCD in #107)

terriyu commented 7 years ago

I don't know if this is related, but I couldn't open images with the extension ".tiff"

I fixed this by making the following change in sloth/gui/labeltool.py :

- image_types = [ '*.jpg', '*.bmp', '*.png', '*.pgm', '*.ppm', '*.ppm', '*.tif', '*.gif' ] + image_types = [ '*.jpg', '*.bmp', '*.png', '*.pgm', '*.ppm', '*.ppm', '*.tif', '*.tiff', '*.gif' ]

nilsonholger commented 7 years ago

@terriyu Just added '*.tiff' to the list of image types in commit de636a1, thx for the report, didn't even get noticed so far.