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
0e6d9a2e
authored
2022-07-12 14:26:52 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bs
1 parent
5f017a8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/celery_compare/tasks.py
src/common/tools/pdf_to_img.py
src/celery_compare/tasks.py
View file @
0e6d9a2
...
...
@@ -1732,7 +1732,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
fp_campaign
=
cms_info
.
get
(
'fpCampaign'
,
''
)
fp_group
=
cms_info
.
get
(
'fpGroup'
,
''
)
insurance_type
=
cms_info
.
get
(
'insuranceDetails'
,
{})
.
get
(
'insuranceType'
,
''
)
if
isinstance
(
insurance_price
,
str
):
if
i
nsurance_type
==
'Waive Insurance'
and
i
sinstance
(
insurance_price
,
str
):
is_insurance
=
1
elif
insurance_type
==
'Comprehensive Insurance'
:
is_insurance
=
2
...
...
src/common/tools/pdf_to_img.py
View file @
0e6d9a2
...
...
@@ -125,7 +125,7 @@ class PDFHandler:
x1
=
x1
*
width_scale
y1
=
y1
*
height_scale
rebuild_text_list
.
append
(
((
x0
,
y0
,
x1
,
y0
,
x1
,
y1
,
x0
,
y1
),
normalize
(
'NFKC'
,
text
))
((
x0
,
y0
,
x1
,
y0
,
x1
,
y1
,
x0
,
y1
),
normalize
(
'NFKC'
,
text
))
)
self
.
page_text_list
[
pno
][
'rebuild_text'
]
=
rebuild_text_list
except
Exception
as
e
:
...
...
@@ -295,8 +295,9 @@ class PDFHandler:
self
.
page_to_png
(
page
)
def
title_is_ebank
(
self
,
char
):
new_char
=
normalize
(
'NFKC'
,
char
)
for
title
in
self
.
ebank_title_list
:
if
char
.
find
(
title
)
!=
-
1
:
if
new_
char
.
find
(
title
)
!=
-
1
:
return
True
return
False
...
...
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