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
28260a00
authored
2021-08-11 11:48:28 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
50f13b7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
28260a0
...
...
@@ -223,7 +223,7 @@ class Command(BaseCommand, LoggerMixin):
dda_ocr_result
[
consts
.
DDA_PRO
]
=
pro
license_summary
.
setdefault
(
classify
,
[])
.
append
(
dda_ocr_result
)
elif
classify
==
consts
.
HMH_CLASSIFY
:
# 抵押登记豁免函
hmh_ocr_result
=
{
key
:
value
.
get
(
'words'
,
''
)
for
key
,
value
in
license_data
.
get
(
'result'
,
{})
.
items
()}
hmh_ocr_result
=
{
key
:
value
.
get
(
'words'
,
''
)
for
key
,
value
in
license_data
.
items
()}
license_summary
.
setdefault
(
classify
,
[])
.
append
(
hmh_ocr_result
)
elif
classify
==
consts
.
JYPZ_CLASSIFY
:
# 二手车交易凭证
jypz_ocr_result
=
{
key
:
value
.
get
(
'words'
,
''
)
for
key
,
value
in
license_data
.
get
(
'result'
,
{})
.
items
()}
...
...
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