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
e6486884
authored
2022-05-05 14:58:44 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix mvi
1 parent
08b0fd9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
src/apps/doc/consts.py
src/common/tools/comparison.py
src/apps/doc/consts.py
View file @
e648688
...
...
@@ -1719,7 +1719,7 @@ SME_BL_COMPARE_LOGIC = {
MVI_COMPARE_LOGIC
=
{
'vinNo'
:
(
'车辆识别代码'
,
'se_common_compare'
,
{},
'发票车架号与系统不一致'
),
'dealer'
:
(
'销方名称'
,
'se_contain_compare_2'
,
{},
'发票销货单位名称与系统不一致'
),
'dealer'
:
(
'销方名称'
,
'se_contain_compare_2'
,
{
'brackets_replace'
:
True
},
'发票销货单位名称与系统不一致'
),
'vehicleTransactionAmount'
:
(
'价税合计小写'
,
'se_amount_compare'
,
{},
'发票车辆价格与系统不一致'
),
'customerName'
:
(
'购方名称'
,
'se_name_compare'
,
{
'is_passport'
:
True
,
'replace_kuohao'
:
True
},
'发票购买方姓名与系统不一致'
),
'idNum'
:
(
'购买方身份证号或组织机构代码'
,
'se_common_compare'
,
{},
'发票购买方证件号码与系统不一致'
),
...
...
src/common/tools/comparison.py
View file @
e648688
...
...
@@ -390,6 +390,9 @@ class Comparison:
return
self
.
RESULT_Y
def
se_contain_compare_2
(
self
,
input_str
,
ocr_str
,
**
kwargs
):
if
kwargs
.
get
(
'brackets_replace'
,
False
):
input_str
=
input_str
.
translate
(
self
.
KH_TRANS
)
ocr_str
=
ocr_str
.
translate
(
self
.
KH_TRANS
)
if
input_str
.
find
(
ocr_str
)
==
-
1
:
return
self
.
RESULT_N
else
:
...
...
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