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
2eb6244c
"vscode:/vscode.git/clone" did not exist on "5b93338235191b19086534f91c78406e905d1921"
Commit
2eb6244c
authored
Jun 27, 2020
by
zhangxin
Browse files
修改英文注释
parent
f3172214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/infer/predict_rec.py
tools/infer/predict_rec.py
+1
-1
No files found.
tools/infer/predict_rec.py
View file @
2eb6244c
...
@@ -73,7 +73,7 @@ class TextRecognizer(object):
...
@@ -73,7 +73,7 @@ class TextRecognizer(object):
width_list
=
[]
width_list
=
[]
for
img
in
img_list
:
for
img
in
img_list
:
width_list
.
append
(
img
.
shape
[
1
]
/
float
(
img
.
shape
[
0
]))
width_list
.
append
(
img
.
shape
[
1
]
/
float
(
img
.
shape
[
0
]))
# Sorting can
be accelerated
# Sorting can
speed up the recognition process
indices
=
np
.
argsort
(
np
.
array
(
width_list
))
indices
=
np
.
argsort
(
np
.
array
(
width_list
))
# rec_res = []
# rec_res = []
...
...
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