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
d62f4b3c
authored
2025-05-13 15:08:33 +0800
by
chenyao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加限制被保险人位置的条件
1 parent
1e6d9aa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
d62f4b3
...
...
@@ -2080,7 +2080,7 @@ class Command(BaseCommand, LoggerMixin):
if
isinstance
(
license_dict_tmp
,
dict
):
if
"被保险人姓名"
in
license_dict_tmp
.
keys
():
if
license_dict_tmp
.
get
(
"被保险人姓名"
)
is
not
None
:
if
isinstance
(
license_dict_tmp
.
get
(
"被保险人姓名"
),
str
)
and
license_dict_tmp
.
get
(
"被保险人姓名"
)
!=
""
:
if
isinstance
(
license_dict_tmp
.
get
(
"被保险人姓名"
),
str
)
and
license_dict_tmp
.
get
(
"被保险人姓名"
)
!=
""
and
"保险"
not
in
license_dict_tmp
.
get
(
"被保险人姓名"
)
:
license_first_page_list
[
license_list_tmp_idx
]
=
1
break
# 获取 license_first_page_list 中为 1 的索引
...
...
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