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
249aab4d
authored
2022-06-29 11:54:13 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bd
1 parent
647b4550
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
249aab4
...
...
@@ -372,7 +372,8 @@ class Command(BaseCommand, LoggerMixin):
min_char_count_2
=
1000
for
product
in
license_data
.
get
(
'result'
,
{})
.
get
(
'productList'
,
[]):
name
=
product
.
get
(
'name'
,
{})
.
get
(
'words'
,
''
)
if
name
.
find
(
'机动车损失'
)
!=
-
1
or
name
.
find
(
'汽车损失'
)
!=
-
1
or
name
.
find
(
'车损险'
)
!=
-
1
:
if
name
.
find
(
'机动车损失'
)
!=
-
1
or
name
.
find
(
'汽车损失'
)
!=
-
1
or
name
.
find
(
'车损险'
)
!=
-
1
or
\
name
.
find
(
'车损失险'
)
!=
-
1
or
name
.
find
(
'车损失保险'
)
!=
-
1
:
if
len
(
name
)
<
min_char_count_1
:
min_char_count_1
=
len
(
name
)
product_result
[
0
]
=
product
.
get
(
'coverage'
,
{})
.
get
(
'words'
,
''
)
...
...
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