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
7bdbfede
authored
2025-10-27 22:35:40 +0800
by
chenyao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fsm更改变为page_8
1 parent
25a29ef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
src/common/electronic_afc_contract/get_char_fsm.py
src/common/electronic_afc_contract/get_char_fsm.py
View file @
7bdbfed
...
...
@@ -94,7 +94,9 @@ class Finder:
},
}
else
:
self
.
init_result
[
"page_7"
]
=
{
"合同编号"
:
self
.
item
,
self
.
init_result
[
"page_7"
]
=
{
"合同编号"
:
self
.
item
,}
self
.
init_result
[
"page_8"
]
=
{
"合同编号"
:
self
.
item
,
"主借人签字"
:
{
"签字"
:
self
.
item
,
"日期"
:
self
.
item
,
},
...
...
@@ -1014,35 +1016,40 @@ class Finder:
# 找合同编号
contract_no
=
self
.
get_contract_no
(
page_num
=
'6'
)
self
.
init_result
[
'page_7'
][
'合同编号'
]
=
contract_no
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'6'
,
# Page 8
# 找合同编号
contract_no
=
self
.
get_contract_no
(
page_num
=
'7'
)
self
.
init_result
[
'page_8'
][
'合同编号'
]
=
contract_no
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'7'
,
top
=
'合同编号'
,
bottom
=
'共同借款人'
)
if
signature_name
[
'words'
]
==
None
:
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
6
'
,
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
7
'
,
top
=
'合同编号'
,
bottom
=
'共同借款人(抵押人)'
)
# print(signature_name, signature_date)
self
.
init_result
[
'page_
7
'
][
'主借人签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
7
'
][
'主借人签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
6
'
,
self
.
init_result
[
'page_
8
'
][
'主借人签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
8
'
][
'主借人签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
7
'
,
top
=
'共同借款人'
,
bottom
=
'保证人1'
)
if
signature_name
[
'words'
]
==
None
:
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
6
'
,
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
7
'
,
top
=
'共同借款人(抵押人)'
,
bottom
=
'保证人1'
)
# print(signature_name, signature_date)
self
.
init_result
[
'page_
7
'
][
'共借人签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
7
'
][
'共借人签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
6
'
,
self
.
init_result
[
'page_
8
'
][
'共借人签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
8
'
][
'共借人签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
7
'
,
top
=
'保证人1'
,
bottom
=
'保证人2'
)
self
.
init_result
[
'page_
7
'
][
'保证人1签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
7
'
][
'保证人1签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
6
'
,
self
.
init_result
[
'page_
8
'
][
'保证人1签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
8
'
][
'保证人1签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
7
'
,
top
=
'保证人2'
,
bottom
=
'在本人面前亲笔签署本合同'
)
self
.
init_result
[
'page_
7
'
][
'保证人2签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
7
'
][
'保证人2签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
6
'
,
self
.
init_result
[
'page_
8
'
][
'保证人2签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
8
'
][
'保证人2签字'
][
'日期'
]
=
signature_date
signature_name
,
signature_date
=
self
.
get_last_page_signature
(
page_num
=
'
7
'
,
top
=
'在本人面前亲笔签署本合同'
,
bottom
=
'以下无正文'
)
# print(signature_name, signature_date)
self
.
init_result
[
'page_
7
'
][
'见证人签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
7
'
][
'见证人签字'
][
'日期'
]
=
signature_date
self
.
init_result
[
'page_
8
'
][
'见证人签字'
][
'签字'
]
=
signature_name
self
.
init_result
[
'page_
8
'
][
'见证人签字'
][
'日期'
]
=
signature_date
# 重新定制输出
...
...
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