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
0669da1f
authored
2021-10-14 11:49:34 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix dl
1 parent
460d1042
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
0669da1
...
...
@@ -292,6 +292,15 @@ def ca_compare_license(license_en, ocr_res_dict, field_list):
ocr_res_str
=
ocr_res_dict
.
get
(
ocr_field
)
if
ocr_res_str
is
not
None
:
ocr_res_list
=
json
.
loads
(
ocr_res_str
)
# 副页去除 TODO 3/4页去除
if
ocr_field
==
consts
.
DL_OCR_FIELD
:
tmp_list
=
[]
for
res
in
ocr_res_list
:
if
compare_logic
[
'vinNo'
][
0
]
in
res
:
tmp_list
.
append
(
res
)
ocr_res_list
=
tmp_list
length
=
len
(
ocr_res_list
)
# 身份证、居住证 过期期限特殊处理
...
...
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