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
ba0c4726
authored
2021-04-16 10:42:38 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix mvc
1 parent
c6290fa1
Show 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 @
ba0c472
...
...
@@ -88,6 +88,15 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s
ocr_res_str
=
ocr_res_dict
.
get
(
ocr_field
)
if
ocr_res_str
is
not
None
:
ocr_res_list
=
json
.
loads
(
ocr_res_str
)
# 车辆登记证3、4页去除
if
ocr_field
==
consts
.
MVC_OCR_FIELD
:
tmp_list
=
[]
for
res
in
ocr_res_list
:
if
res
.
get
(
compare_list
[
0
][
1
])
is
not
None
:
tmp_list
.
append
(
res
)
ocr_res_list
=
tmp_list
length
=
len
(
ocr_res_list
)
for
ocr_res
in
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