Skip to content

Commit

Permalink
Allowing all supported extensions to be read in the directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cjermain committed Mar 8, 2018
1 parent dec4885 commit 8e892c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ def loadRecent(self, filename):
self.loadFile(filename)

def scanAllImages(self, folderPath):
extensions = ['.jpeg', '.jpg', '.png', '.bmp']
extensions = ['.%s' % fmt.data().decode("ascii").lower() for fmt in QImageReader.supportedImageFormats()]
images = []

for root, dirs, files in os.walk(folderPath):
Expand Down

0 comments on commit 8e892c4

Please sign in to comment.