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
a21cf252
authored
2021-11-25 10:23:56 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ebank
1 parent
e9bdb6cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/common/tools/pdf_to_img.py
src/common/tools/pdf_to_img.py
View file @
a21cf25
...
...
@@ -40,7 +40,7 @@ class PDFHandler:
self
.
pdf_info
=
{}
self
.
img_path_pno_list
=
[]
self
.
ebank_title_list
=
[
'微信支付交易明细证明'
,
#
'微信支付交易明细证明',
'支付宝收支明细证明'
,
'招商银行交易流水'
,
'中国工商银行借记账户历史明细'
,
...
...
@@ -270,7 +270,7 @@ class PDFHandler:
def
title_is_ebank
(
self
,
char
):
for
title
in
self
.
ebank_title_list
:
if
title
.
find
(
char
)
!=
-
1
or
char
.
find
(
title
)
!=
-
1
:
if
char
.
find
(
title
)
!=
-
1
:
return
True
return
False
...
...
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