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
a44c2a69
Commit
a44c2a69
authored
Nov 30, 2020
by
WenmuZhou
Browse files
Adapt to windows
parent
bbc52fc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/infer/predict_det.py
tools/infer/predict_det.py
+3
-3
No files found.
tools/infer/predict_det.py
View file @
a44c2a69
...
@@ -180,8 +180,8 @@ if __name__ == "__main__":
...
@@ -180,8 +180,8 @@ if __name__ == "__main__":
count
+=
1
count
+=
1
print
(
"Predict time of %s:"
%
image_file
,
elapse
)
print
(
"Predict time of %s:"
%
image_file
,
elapse
)
src_im
=
utility
.
draw_text_det_res
(
dt_boxes
,
image_file
)
src_im
=
utility
.
draw_text_det_res
(
dt_boxes
,
image_file
)
img_name_pure
=
image_file
.
split
(
"/"
)[
-
1
]
img_name_pure
=
os
.
path
.
split
(
image_file
)[
-
1
]
cv2
.
imwrite
(
img_path
=
os
.
path
.
join
(
draw_img_save
,
"det_res_%s"
%
img_name_pure
)
os
.
path
.
join
(
draw_img_save
,
"det_res_%s"
%
img_name_pure
)
,
src_im
)
cv2
.
imwrite
(
img_path
,
src_im
)
if
count
>
1
:
if
count
>
1
:
print
(
"Avg Time:"
,
total_time
/
(
count
-
1
))
print
(
"Avg Time:"
,
total_time
/
(
count
-
1
))
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