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
69661549
authored
2021-10-12 11:21:25 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/cms4' into feature/0918
2 parents
d5db8edc
460d1042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/apps/doc/consts.py
src/common/tools/comparison.py
src/apps/doc/consts.py
View file @
6966154
...
...
@@ -1477,7 +1477,7 @@ MVC34_COMPARE_LOGIC = {
}
BC_COMPARE_LOGIC
=
{
'accountNo'
:
(
'CardNum'
,
'se_common_compare'
,
{}),
'accountNo'
:
(
'CardNum'
,
'se_common_compare'
,
{
'remove_space'
:
True
}),
'bankName'
:
(
'BankName'
,
'se_both_contain_compare'
,
{}),
}
...
...
src/common/tools/comparison.py
View file @
6966154
...
...
@@ -179,6 +179,8 @@ class Comparison:
return
self
.
build_res
(
input_s
==
ocr_s
)
def
se_common_compare
(
self
,
input_str
,
ocr_str
,
**
kwargs
):
if
kwargs
.
get
(
'remove_space'
,
False
):
input_str
=
input_str
.
replace
(
' '
,
''
)
return
self
.
build_res
(
input_str
==
ocr_str
)
def
ca_common_compare
(
self
,
input_str
,
ocr_str
,
**
kwargs
):
...
...
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