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
027e9ba5
authored
2022-01-28 17:23:43 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix hil e-contract
1 parent
c011a3cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/common/electronic_hil_contract/hil_contract_ocr.py
src/common/electronic_hil_contract/hil_contract_ocr.py
View file @
027e9ba
...
...
@@ -67,10 +67,10 @@ def predict(pdf_info, file_cls):
if
file_cls
==
2
:
# 提取信息 ———— 车辆租赁抵押合同
results
=
f
.
get_info_2
()
if
is_clczxy
is
True
:
for
key
in
results
:
if
results
[
key
][
'page'
]
is
not
None
:
results
[
key
][
'page'
]
=
str
(
int
(
results
[
key
][
'page'
])
+
6
)
#
if is_clczxy is True:
#
for key in results:
#
if results[key]['page'] is not None:
#
results[key]['page'] = str(int(results[key]['page']) + 6)
for
key
in
results
:
if
results
[
key
][
'page'
]
is
not
None
:
results
[
key
][
'page'
]
=
'page_'
+
str
(
int
(
results
[
key
][
'page'
])
+
1
)
...
...
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