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
69ee14db
authored
2021-03-04 15:42:30 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add folder mvc
1 parent
6eccbd73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
src/apps/doc/management/commands/folder_ocr_process.py
src/apps/doc/management/commands/folder_ocr_process.py
View file @
69ee14d
...
...
@@ -45,6 +45,27 @@ class Command(BaseCommand, LoggerMixin):
res_list
.
append
((
pno
,
ino
,
part_idx
,
consts
.
RES_SUCCESS_EMPTY
))
return
res_list
.
append
((
pno
,
ino
,
part_idx
,
consts
.
RES_SUCCESS
))
if
classify
==
consts
.
MVC_CLASSIFY
:
# 车辆登记证 3/4页结果整合
for
mvc_dict
in
license_data
:
try
:
mvc_page
=
mvc_dict
.
pop
(
'page'
)
except
Exception
as
e
:
pass
else
:
if
mvc_page
==
'VehicleRegArea'
:
mvc_dict
[
'姓名/名称'
]
=
[]
mvc_dict
[
'身份证明名称/号码'
]
=
[]
mvc_dict
[
'转移登记日期'
]
=
[]
mvc_res
=
mvc_dict
.
pop
(
'results'
,
{})
for
register_info
in
mvc_res
.
get
(
'register_info'
,
[]):
if
register_info
.
get
(
'register_type'
,
0
)
==
2
:
mvc_dict
[
'姓名/名称'
]
.
append
(
register_info
.
get
(
'details'
,
{})
.
get
(
'name'
,
{})
.
get
(
'words'
,
''
))
mvc_dict
[
'身份证明名称/号码'
]
.
append
(
register_info
.
get
(
'details'
,
{})
.
get
(
'idno'
,
{})
.
get
(
'words'
,
''
))
mvc_dict
[
'转移登记日期'
]
.
append
(
register_info
.
get
(
'details'
,
{})
.
get
(
'date'
,
{})
.
get
(
'words'
,
''
))
del
mvc_res
if
classify
==
consts
.
IC_CLASSIFY
:
for
id_card_dict
in
license_data
:
try
:
...
...
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