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
a825541a
authored
2022-06-13 13:30:29 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/e-bank'
2 parents
594149a3
597d5d5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/apps/doc/ocr/wb.py
src/common/tools/pdf_to_img.py
src/apps/doc/ocr/wb.py
View file @
a825541
...
...
@@ -68,7 +68,7 @@ class BSWorkbook(Workbook):
header_col
=
header_dict
.
get
(
header_value
)
if
header_col
is
None
:
for
pattern
in
consts
.
PATTERN_LIST
:
if
re
.
search
(
pattern
,
header_value
):
if
re
.
search
(
pattern
,
header_value
)
and
len
(
header_value
)
-
len
(
pattern
)
<=
5
:
header_col
=
header_dict
.
get
(
pattern
)
break
return
header_col
...
...
src/common/tools/pdf_to_img.py
View file @
a825541
...
...
@@ -46,6 +46,8 @@ class PDFHandler:
'中国工商银行借记账户历史明细'
,
'中国建设银行个人活期账户全部交易明细'
,
'平安银行个人账户交易明细清单'
,
'中国农业银⾏账⼾活期交易明细清单'
,
'支付宝(中国)网络技术有限公司 交易流水证明'
]
self
.
page_count
=
None
self
.
metadata
=
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