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
0cb79d87
authored
2025-04-24 18:23:33 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
a5ab8843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
0cb79d8
...
...
@@ -11,9 +11,10 @@ from openpyxl import Workbook
from
openpyxl.styles
import
PatternFill
,
numbers
from
openpyxl.utils
import
get_column_letter
from
apps.doc
import
consts
from
common.mixins
import
LoggerMixin
class
BSWorkbook
(
Workbook
):
class
BSWorkbook
(
Workbook
,
LoggerMixin
):
def
__init__
(
self
,
interest_keyword
,
salary_keyword
,
loan_keyword
,
wechat_keyword
,
repayments_keyword
,
*
args
,
**
kwargs
):
super
()
.
__init__
(
*
args
,
**
kwargs
)
...
...
@@ -38,6 +39,7 @@ class BSWorkbook(Workbook):
# self.border = Border(left=self.bd, top=self.bd, right=self.bd, bottom=self.bd)
self
.
MAX_MEAN
=
31
self
.
need_follow
=
False
self
.
log_base
=
'[workbook excel]'
# @staticmethod
# def date_calibration(date_str):
...
...
@@ -710,6 +712,8 @@ class BSWorkbook(Workbook):
# 'sheet': ['sheet_name']
# }
# }
self
.
online_log
.
warn
(
'{0} [bs_rebuild] [bs_summary={1}] [res_count_tuple={2}]'
.
format
(
self
.
log_base
,
bs_summary
,
res_count_tuple
))
for
card
,
summary
in
bs_summary
.
items
():
special_nhzs
=
False
new_card
=
self
.
get_new_card
(
card
)
...
...
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