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
5a9885b4
authored
2024-09-20 15:02:23 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/fix/hil_excel_sql'
2 parents
d6d57f27
f39ea716
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
src/apps/doc/consts.py
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/consts.py
View file @
5a9885b
...
...
@@ -1613,7 +1613,7 @@ SE_HIL_CON_1_MAP = {
'承租人姓名'
:
(
1
,
1
,
7
,
'承租人-姓名'
,
None
),
'承租人证件号'
:
(
1
,
1
,
7
,
'承租人-证件号码'
,
None
),
'承租人签字'
:
(
6
,
6
,
7
,
'签字页-承租人
姓名
'
,
None
),
'承租人签字'
:
(
6
,
6
,
7
,
'签字页-承租人
签章
'
,
None
),
'共同承租人姓名'
:
(
1
,
1
,
7
,
'保证人1-姓名'
,
None
),
'共同承租人证件号'
:
(
1
,
1
,
7
,
'保证人1-证件号码'
,
None
),
...
...
@@ -1641,7 +1641,7 @@ SE_HIL_CON_2_MAP = {
'融资租赁期限'
:
(
1
,
None
,
3
,
'融资租赁期限'
,
None
),
'抵押人'
:
(
1
,
None
,
3
,
'抵押人姓名/名称'
,
None
),
'抵押人证件号码'
:
(
1
,
None
,
3
,
'抵押人证件号码'
,
None
),
'抵押人签字'
:
(
2
,
None
,
3
,
'签字页-抵押人
姓名
'
,
None
),
'抵押人签字'
:
(
2
,
None
,
3
,
'签字页-抵押人
签章
'
,
None
),
'抵押人配偶'
:
(
1
,
None
,
3
,
'抵押人配偶姓名/名称'
,
None
),
'抵押人配偶证件号码'
:
(
1
,
None
,
3
,
'抵押人配偶证件号码'
,
None
),
'抵押人配偶签字'
:
(
2
,
None
,
3
,
'签字页-抵押人配偶姓名'
,
None
),
...
...
src/apps/doc/management/commands/ocr_process.py
View file @
5a9885b
...
...
@@ -1015,6 +1015,13 @@ class Command(BaseCommand, LoggerMixin):
tmp_res
=
page_info_dict
.
get
(
str
(
pno2
),
{})
.
get
(
key1
,
''
)
img_pno
=
pno1
res
[
key
]
=
tmp_res
# 添加处理,
# [售后回租合同] - 如果 key 是 "承租人签字", 且内容中包含 签署日期:XXXX, 则将签署日期去除
# [车辆租赁抵押合同] - 如果 key 是 ""
if
key
==
'承租人签字'
and
'签署日期'
in
tmp_res
:
res
[
key
]
=
tmp_res
.
split
(
'签署日期'
)[
0
]
if
key
==
"抵押人签字"
and
"签署日期"
in
tmp_res
:
res
[
key
]
=
tmp_res
.
split
(
"签署日期"
)[
0
]
res
.
setdefault
(
consts
.
IMG_PATH_KEY
,
dict
())[
key
]
=
page_info_dict
.
get
(
str
(
img_pno
),
{})
.
get
(
consts
.
IMG_PATH_KEY
,
''
)
else
:
...
...
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