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
3 years ago
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bs
1 parent
5f017a8f
master
...
CHINARPA-4562
OCR-recognition-for-FSM-related-documents
feature/202506-monixiadan
feature/4058
feature/CHINAPRA-4447
feature/CHINARPA-3290-FSM-AUTO
feature/CHINARPA-3443
feature/CHINARPA-3523
feature/CHINARPA-3528
feature/CHINARPA-3529
feature/CHINARPA-3577
feature/CHINARPA-3786
feature/CHINARPA-3964
feature/CHINARPA-4137
feature/CHINARPA-4277
feature/CHINARPA-4302/all-pass
feature/CHINARPA-4341
feature/CHINARPA-4357
feature/CHINARPA-4358
feature/CHINARPA-4395
feature/CHINARPA-4495
feature/CHINARPA-4546
feature/CHINARPA-4623
feature/CHINARPA-4659
feature/CHINARPA-4660
feature/CHINARPA-4731
feature/CHINARPA-4846
feature/CHINARPA-4941
feature/CHINARPA-4942
feature/CHINARPA-4944
feature/CHINARPA-4962
feature/CHINARPA-5015
feature/CHINARPA-5075
feature/CHINARPA-5092
feature/CHINARPA-5117
feature/CHINARPA-5118
feature/CHINARPA-5131-5234
feature/CHINARPA-5153
feature/CHINARPA-5155
feature/CHINARPA-5296
feature/CHINARPA-5504
feature/CHINARPA-5619
feature/CHINARPA-5620-dzfp
feature/CHINARPA_5015_SQL
feature/KWOM_July
feature/SE3
feature/add_log_20240924
feature/add_try_except
feature/enhancement-file-name-change
feature/filter-file
feature/fix_label_40_dydjhmh
feature/fsm-contract
feature/fsm-full
feature/hotfix_insurance
feature/mssql-encrypt
feature/new-pwd
feature/pdftoimg
feature/pres
feature/pres-3034
feature/qrs
feature/report
feature/report2
feature/sc
feature/seOct
feature/uat-new
feature/uat-tmp
feature/uat-tmp-cms-yace
feature/uat-tmp-cy
feature/uat-tmp-wblog
feature/upgrade_cut_img
feature/weixin-bs
feature/weixin-bs-2
feature/zfb
feature/zip
feature_add_down_payment
feature_add_income_keywords_cy
feature_add_insurance_sec_page
fix/1118上线问题反馈
fix/2024-05-pen-test
fix/20240424
fix/hil_excel_sql
fix/new_hil_contract
fix/report_ca
hotfix/2025-02
hotfix/2025-04
hotfix/2025-06
master-0117
ocr-Pre-Settlement
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
...
...
This diff is collapsed.
Click to expand it.
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
...
...
This diff is collapsed.
Click to expand it.
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