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
ModelZoo
PaddleOCR_paddle_onnxruntime
Commits
da2d01b3
Commit
da2d01b3
authored
May 31, 2023
by
chenxj
Browse files
solve rec num 0 bug
parent
66e68533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tools/infer/predict_rec.py
tools/infer/predict_rec.py
+2
-0
No files found.
tools/infer/predict_rec.py
View file @
da2d01b3
...
...
@@ -102,6 +102,8 @@ class TextRecognizer(object):
indices
=
np
.
argsort
(
np
.
array
(
width_list
))
rec_res
=
[[
''
,
0.0
]]
*
img_num
if
img_num
<=
0
:
return
rec_res
,
0
max_batnum
=
24
min_batnum
=
8
if
os
.
environ
.
get
(
"OCR_REC_MAX_BATNUM"
)
is
not
None
:
...
...
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