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
086507c6
authored
2021-11-01 18:37:58 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
rebuild result
1 parent
5c08056d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
src/apps/doc/consts.py
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/consts.py
View file @
086507c
...
...
@@ -658,6 +658,13 @@ CLASSIFY_HEADER_LIST = [
OTHER_CLASSIFY
=
2
# 身份证
IC_MAP_0
=
((
'姓名'
,
'姓名'
),
(
'公民身份号码'
,
'公民身份号码'
),
(
'出生年月'
,
'出生'
),
(
'住址'
,
'住址'
),
(
'性别'
,
'性别'
),
(
'民族'
,
'民族'
),)
IC_MAP_1
=
((
'签发机关'
,
'签发机关'
),)
IC_CN_NAME
=
'身份证'
IC_CLASSIFY
=
33
IC_TURE_OR_FALSE
=
'真伪'
...
...
@@ -670,6 +677,12 @@ IC_FIELD_ORDER_0 = ((IC_TURE_OR_FALSE, '身份证'),
(
'民族'
,
'民族'
),)
IC_FIELD_ORDER_1
=
((
IC_TURE_OR_FALSE
,
'身份证'
),
(
'有效期限'
,
'有效期限'
),
(
'签发机关'
,
'签发机关'
),)
# 居住证
RP_MAP_0
=
((
'姓名'
,
'姓名'
),
(
'公民身份号码'
,
'公民身份号码'
),
(
'出生年月'
,
'出生'
),
(
'住址'
,
'住址'
),
(
'性别'
,
'性别'
),)
RP_MAP_1
=
((
'签发机关'
,
'签发机关'
),
(
'通行证号码'
,
'通行证号码'
))
RP_CN_NAME
=
'居住证'
RP_CLASSIFY
=
10087
RP_FIELD_ORDER_0
=
((
'姓名'
,
'姓名'
),
...
...
src/apps/doc/management/commands/ocr_process.py
View file @
086507c
This diff is collapsed.
Click to expand it.
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