From 8e892c4f257547dedb8e67d675ee4f539605659b Mon Sep 17 00:00:00 2001 From: Colin Jermain Date: Thu, 8 Mar 2018 14:47:19 -0500 Subject: [PATCH] Allowing all supported extensions to be read in the directory --- labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelImg.py b/labelImg.py index a817a653..75f7c87a 100755 --- a/labelImg.py +++ b/labelImg.py @@ -1040,7 +1040,7 @@ class MainWindow(QMainWindow, WindowMixin): 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):