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
123530e2
authored
2021-02-01 11:08:27 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add idcard num
1 parent
ef0aebc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
src/apps/doc/consts.py
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/consts.py
View file @
123530e
...
...
@@ -640,7 +640,7 @@ RP_FIELD_ORDER_0 = (('姓名', '姓名'),
(
'出生年月'
,
'出生年月'
),
(
'住址'
,
'住址'
),
(
'性别'
,
'性别'
),)
RP_FIELD_ORDER_1
=
IC_FIELD_ORDER_1
RP_FIELD_ORDER_1
=
((
'有效期限'
,
'有效期限'
),
(
'签发机关'
,
'签发机关'
),
(
'通行证号码'
,
'通行证号码'
))
# 增值税普票
VAT_CN_NAME
=
'VAT普票'
VAT_CLASSIFY
=
0
...
...
src/apps/doc/management/commands/ocr_process.py
View file @
123530e
...
...
@@ -307,6 +307,11 @@ class Command(BaseCommand, LoggerMixin):
# }
# }
# }
# 归为同一份流水的逻辑
# 所有图片均无卡号:同一分类同一户名归为同一份流水(如果同一分类下只有一个已知户名,则此分类下其他未知户名归为此户名)
# 所有图片只已知1卡号:其他未知卡号流水归为此卡号
# 所有图片已知多卡号: 1.根据相似度和图片数目合并相似已知卡号,并整理多数分类和户名集合
# 2.遍历所有未知卡号,进行过滤:当未知卡号分类与某已知卡号一致,且此未知卡号户名在此已知卡号户名集合中时,将未知卡号归为已知卡号。剩余未知卡号同一分类同一户名归为同一流水
# 无卡号
if
len
(
bs_summary
)
==
0
:
del
bs_summary
...
...
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