Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
86fd122c
authored
2021-05-13 14:27:59 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
31656b38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
86fd122
...
...
@@ -923,9 +923,12 @@ class Command(BaseCommand, LoggerMixin):
# DDA处理
if
is_hil
:
try
:
# 获取需要保存图片的集合
hil_dda_save_img_list
=
[]
for
dda_res_list
in
license_summary
.
get
(
consts
.
DDA_CLASSIFY
,
[]):
dda_res_list
=
license_summary
.
get
(
consts
.
DDA_CLASSIFY
,
[])
self
.
online_log
.
info
(
'{0} [DDA process] [DDA_info={1}]'
.
format
(
self
.
log_base
,
dda_res_list
))
for
dda_idx
,
dda_res
in
enumerate
(
dda_res_list
):
save_img_dict
=
{
consts
.
DDA_FIELD
:
dda_res
.
get
(
consts
.
DDA_IMG_PATH
)
...
...
@@ -935,9 +938,10 @@ class Command(BaseCommand, LoggerMixin):
save_img_dict
.
setdefault
(
license_field
,
set
())
.
update
(
hil_id_bc_mapping
.
get
(
license_field
,
dict
())
.
get
(
target_str
,
set
()))
hil_dda_save_img_list
.
append
(
save_img_dict
)
self
.
online_log
.
info
(
'{0} [DDA process] [DDA_info={1}]'
.
format
(
self
.
log_base
,
license_summary
.
get
(
consts
.
DDA_CLASSIFY
,
[])))
self
.
online_log
.
info
(
'{0} [DDA process] [ic&bc_info={1}]'
.
format
(
self
.
log_base
,
hil_id_bc_mapping
))
self
.
online_log
.
info
(
'{0} [DDA process] [img_path={1}]'
.
format
(
self
.
log_base
,
hil_dda_save_img_list
))
except
Exception
as
e
:
pass
# 保存图片
# 数据库记录
# report记录
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment