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
b08e11fe
authored
2021-01-04 18:38:52 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ms over
1 parent
8342bc13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
b08e11f
...
...
@@ -103,6 +103,9 @@ class BSWorkbook(Workbook):
sheet_header_info
.
setdefault
(
ws
.
title
,
{})
.
setdefault
(
consts
.
HEADER_KEY
,
first_row
)
for
idx
,
header_value
in
enumerate
(
first_row
):
header_col
=
self
.
get_header_col
(
header_value
,
classify
)
if
classify
==
consts
.
MS_CLASSIFY
and
header_col
==
consts
.
OVER_KEY
and
\
header_value
==
'账户余额现转标志'
and
not
first_row
[
idx
-
1
]:
idx
-=
1
if
header_col
is
not
None
:
header_col_list
.
append
((
idx
,
header_col
))
...
...
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