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
cfe2b64f
authored
2020-10-28 11:29:44 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix fill
1 parent
56281e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
cfe2b64
...
...
@@ -352,7 +352,9 @@ class BSWorkbook(Workbook):
tmp_ws
.
append
((
summary_cell_value
,
date_cell_value
,
amount_cell_value
))
# 贷款关键词高亮
elif
summary_cell_value
in
self
.
loan_keyword
:
summary_cell
.
fill
=
self
.
loan_fill
summary_cell
.
fill
=
self
.
amount_fill
if
amount_cell
is
not
None
:
amount_cell
.
fill
=
self
.
amount_fill
# 3.3.余额转数值
over_success
=
False
...
...
@@ -413,6 +415,8 @@ class BSWorkbook(Workbook):
del
amount_mapping
for
row
in
amount_fill_row
:
new_ws
[
row
][
amount_cell_idx
]
.
fill
=
self
.
amount_fill
if
summary_cell_idx
is
not
None
:
new_ws
[
row
][
summary_cell_idx
]
.
fill
=
self
.
amount_fill
# 关键词2信息提取
ms
.
append
(
self
.
blank_row
)
...
...
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