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
88286839
authored
2022-10-22 10:36:15 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix hil e-contract
1 parent
02d77901
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
src/common/electronic_hil_contract/get_char.py
src/common/electronic_hil_contract/get_char.py
View file @
8828683
...
...
@@ -857,6 +857,30 @@ class Finder:
total
=
get_table_info
(
ocr_results
[
key_total
][
0
],
ocr_results
[
key_sjrzje
][
0
],
ocr_results
)
lines
.
append
([
'总计'
,
''
,
total
])
# 所购 BMW悦然焕
# 新服务
# 所购 BMW5年10
# 万公里长悦保养套餐
# 所购 事故维修补偿
# 方案
# 所购 BMW5年10万公里
# 长悦保养套餐
filtered_lines
=
[]
for
line
in
lines
:
if
line
[
0
][:
2
]
not
in
[
'所购'
,
'项目'
,
'总计'
]:
continue
if
'BMW悦然'
in
line
[
0
]:
line
[
0
]
=
'所购 BMW悦然焕新服务'
if
'BMW5年10'
in
line
[
0
]:
line
[
0
]
=
'所购 BMW5年10万公里长悦保养套餐'
if
'事故维修补'
in
line
[
0
]:
line
[
0
]
=
'所购 事故维修补偿方案'
filtered_lines
.
append
(
line
)
table_add_product
[
'words'
]
=
lines
table_add_product
[
'page'
]
=
add_product_page_num
table_add_product
[
'position'
]
=
None
...
...
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