Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Immanuel Weber
labelImg
Commits
8e892c4f
Commit
8e892c4f
authored
Mar 08, 2018
by
Colin Jermain
Browse files
Allowing all supported extensions to be read in the directory
parent
dec4885e
Changes
1
Hide whitespace changes
Inline
Side-by-side
labelImg.py
View file @
8e892c4f
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment