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
b090627a
"vscode:/vscode.git/clone" did not exist on "05e831697a03984032863b2aa5d6443e422713e6"
Commit
b090627a
authored
May 27, 2020
by
LDOUBLEV
Browse files
opt visualized func and add docker usage in cpu
parent
59d0a00e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tools/infer/utility.py
tools/infer/utility.py
+1
-2
No files found.
tools/infer/utility.py
View file @
b090627a
...
@@ -226,8 +226,7 @@ def text_visual(texts, scores, img_h=400, img_w=600, threshold=0.):
...
@@ -226,8 +226,7 @@ def text_visual(texts, scores, img_h=400, img_w=600, threshold=0.):
font_size
=
20
font_size
=
20
txt_color
=
(
0
,
0
,
0
)
txt_color
=
(
0
,
0
,
0
)
font
=
ImageFont
.
truetype
(
font
=
ImageFont
.
truetype
(
"./doc/simfang.ttf"
,
font_size
,
encoding
=
"utf-8"
)
"../../doc/simfang.ttf"
,
font_size
,
encoding
=
"utf-8"
)
gap
=
font_size
+
5
gap
=
font_size
+
5
txt_img_list
=
[]
txt_img_list
=
[]
...
...
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