Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
83d59c5d
Unverified
Commit
83d59c5d
authored
Jan 08, 2021
by
Double_V
Committed by
GitHub
Jan 08, 2021
Browse files
Merge pull request #1685 from littletomatodonkey/dyg/fix_get_img
fix get image list
parents
ef133b13
ba3e397f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/utils/utility.py
ppocr/utils/utility.py
+1
-1
No files found.
ppocr/utils/utility.py
View file @
83d59c5d
...
...
@@ -57,7 +57,7 @@ def get_image_file_list(img_file):
elif
os
.
path
.
isdir
(
img_file
):
for
single_file
in
os
.
listdir
(
img_file
):
file_path
=
os
.
path
.
join
(
img_file
,
single_file
)
if
imghdr
.
what
(
file_path
)
in
img_end
:
if
os
.
path
.
isfile
(
file_path
)
and
imghdr
.
what
(
file_path
)
in
img_end
:
imgs_lists
.
append
(
file_path
)
if
len
(
imgs_lists
)
==
0
:
raise
Exception
(
"not found any img file in {}"
.
format
(
img_file
))
...
...
Write
Preview
Markdown
is supported
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