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
2de63562
Commit
2de63562
authored
May 05, 2022
by
andyjpaddle
Browse files
Merge branch 'dygraph' of
https://github.com/PaddlePaddle/PaddleOCR
into dygraph
parents
879be30f
72d26130
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/infer_rec.py
tools/infer_rec.py
+1
-1
No files found.
tools/infer_rec.py
View file @
2de63562
...
@@ -150,7 +150,7 @@ def main():
...
@@ -150,7 +150,7 @@ def main():
"label"
:
post_result
[
key
][
0
][
0
],
"label"
:
post_result
[
key
][
0
][
0
],
"score"
:
float
(
post_result
[
key
][
0
][
1
]),
"score"
:
float
(
post_result
[
key
][
0
][
1
]),
}
}
info
=
json
.
dumps
(
rec_info
)
info
=
json
.
dumps
(
rec_info
,
ensure_ascii
=
False
)
else
:
else
:
if
len
(
post_result
[
0
])
>=
2
:
if
len
(
post_result
[
0
])
>=
2
:
info
=
post_result
[
0
][
0
]
+
"
\t
"
+
str
(
post_result
[
0
][
1
])
info
=
post_result
[
0
][
0
]
+
"
\t
"
+
str
(
post_result
[
0
][
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