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
130cb7ef
authored
2024-08-05 15:04:03 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:公章是数字导致不参与比对
1 parent
a99e395e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
130cb7e
...
...
@@ -2508,6 +2508,11 @@ def se_compare_license(license_en, ocr_res_dict, field_list):
elif
ocr_field
==
consts
.
JYPZ_OCR_FIELD
and
name
==
consts
.
SE_GB_USED_FIELD
[
2
]:
result
=
getattr
(
cp
,
compare_logic
[
name
][
1
])(
value
,
ocr_str
,
**
compare_logic
[
name
][
2
])
no_key
=
False
elif
isinstance
(
ocr_str
,
int
):
# 目前应该只有财报的公章
result
=
getattr
(
cp
,
compare_logic
[
name
][
1
])(
value
,
ocr_str
,
**
compare_logic
[
name
][
2
])
compare_log
.
info
(
'{0} [{1}_license] [field:{2}] [input_str:{3}] [ocr_str:{4}] [result:{5}]'
.
format
(
log_base
,
license_en
,
name
,
value
,
ocr_str
,
result
))
no_key
=
False
else
:
result
=
consts
.
RESULT_N
ocr_str
=
empty_str
...
...
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