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
0d16606e
Unverified
Commit
0d16606e
authored
May 20, 2020
by
dyning
Committed by
GitHub
May 20, 2020
Browse files
Merge pull request #80 from LDOUBLEV/fixocr
Fixocr
parents
6346cd32
81378a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tools/eval_utils/eval_det_utils.py
tools/eval_utils/eval_det_utils.py
+3
-0
No files found.
tools/eval_utils/eval_det_utils.py
View file @
0d16606e
...
...
@@ -34,6 +34,7 @@ import json
from
copy
import
deepcopy
import
cv2
from
ppocr.data.reader_main
import
reader_main
import
os
def
cal_det_res
(
exe
,
config
,
eval_info_dict
):
...
...
@@ -43,6 +44,8 @@ def cal_det_res(exe, config, eval_info_dict):
postprocess_params
.
update
(
global_params
)
postprocess
=
create_module
(
postprocess_params
[
'function'
])
\
(
params
=
postprocess_params
)
if
not
os
.
path
.
exists
(
os
.
path
.
dirname
(
save_res_path
)):
os
.
makedirs
(
os
.
path
.
dirname
(
save_res_path
))
with
open
(
save_res_path
,
"wb"
)
as
fout
:
tackling_num
=
0
for
data
in
eval_info_dict
[
'reader'
]():
...
...
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