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
947e1a61
authored
2021-09-21 18:51:50 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
db2bead1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
947e1a6
...
...
@@ -263,8 +263,8 @@ class Command(BaseCommand, LoggerMixin):
product_result
[
1
]
=
product
.
get
(
'coverage'
,
{})
.
get
(
'words'
,
''
)
insurance_ocr_result
=
{
'被保险人姓名'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'insure
r
'
,
{})
.
get
(
'name'
,
{})
.
get
(
'words'
,
''
),
'被保险人证件号码'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'insure
r
'
,
{})
.
get
(
'certiCode'
,
{})
.
get
(
'words'
,
''
),
'被保险人姓名'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'insure
d
'
,
{})
.
get
(
'name'
,
{})
.
get
(
'words'
,
''
),
'被保险人证件号码'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'insure
d
'
,
{})
.
get
(
'certiCode'
,
{})
.
get
(
'words'
,
''
),
'车架号'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'vehicle'
,
{})
.
get
(
'VIN'
,
{})
.
get
(
'words'
,
''
),
'机动车损失保险金额'
:
product_result
[
0
],
'机动车第三者责任保险金额'
:
product_result
[
1
],
...
...
@@ -273,7 +273,7 @@ class Command(BaseCommand, LoggerMixin):
'保险起始日期'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'startDate'
,
{})
.
get
(
'words'
,
''
),
'保险截止日期'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'endDate'
,
{})
.
get
(
'words'
,
''
),
'保单章'
:
''
,
'特别约定第一受益人'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'
insured
'
,
{})
.
get
(
'words'
,
''
),
'特别约定第一受益人'
:
license_data
.
get
(
'result'
,
{})
.
get
(
'
1stBeneficiary
'
,
{})
.
get
(
'words'
,
''
),
}
license_summary
.
setdefault
(
classify
,
[])
.
append
(
insurance_ocr_result
)
elif
classify
==
consts
.
DDA_CLASSIFY
:
# DDA处理
...
...
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