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
59d0a00e
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c7fa024b8fbc5f1466f4d9431674f84ea68c7426"
Commit
59d0a00e
authored
May 27, 2020
by
LDOUBLEV
Browse files
opt visualized func and add docker usage in cpu
parent
4af18109
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
tools/infer/utility.py
tools/infer/utility.py
+0
-9
No files found.
tools/infer/utility.py
View file @
59d0a00e
...
@@ -276,14 +276,6 @@ def text_visual(texts, scores, img_h=400, img_w=600, threshold=0.):
...
@@ -276,14 +276,6 @@ def text_visual(texts, scores, img_h=400, img_w=600, threshold=0.):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
text
=
[
"旨在打造一套丰富领先、且实用的工具库助力使、用者训练出更好的模型,并应用落地"
,
"以下代码实现了文本检测、识别串联推理,在执行预测时,需要通过参数image_dir指定单张图像或者图像集合"
,
"上述DB模型的训练和评估,需设置后处理参数box_thresh=0.6,unclip_ratio=1.5,使用不同数据集"
]
img
=
text_visual
(
text
,
scores
=
[
0.999
,
0.999
,
0.999
],
img_h
=
100
)
cv2
.
imwrite
(
"./draw_txt.jpg"
,
np
.
array
(
img
))
"""
test_img
=
"./doc/test_v2"
test_img
=
"./doc/test_v2"
predict_txt
=
"./doc/predict.txt"
predict_txt
=
"./doc/predict.txt"
f
=
open
(
predict_txt
,
'r'
)
f
=
open
(
predict_txt
,
'r'
)
...
@@ -303,4 +295,3 @@ if __name__ == '__main__':
...
@@ -303,4 +295,3 @@ if __name__ == '__main__':
new_img
=
draw_ocr
(
image
,
boxes
,
txts
,
scores
,
draw_txt
=
True
)
new_img
=
draw_ocr
(
image
,
boxes
,
txts
,
scores
,
draw_txt
=
True
)
cv2
.
imwrite
(
img_name
,
new_img
)
cv2
.
imwrite
(
img_name
,
new_img
)
"""
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