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
a5da8759
authored
2022-06-09 17:38:35 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix zhifubao
1 parent
16ffc24b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
src/apps/doc/consts.py
src/apps/doc/ocr/wb.py
src/apps/doc/consts.py
View file @
a5da875
...
...
@@ -1136,6 +1136,7 @@ SPECIAL_NYZS_CLASSIFY = 50
MS_CLASSIFY
=
21
MS_ERROR_COL
=
(
5
,
6
)
WECHART_CLASSIFY
=
12
NEW_ZHIFUBAO_CLASSIFY
=
48
ALI_WECHART_CLASSIFY
=
{
12
,
13
}
WECHART_ERROR_COL
=
(
1
,
2
)
SPECIAL_HEADERS_MAPPING
=
copy
.
deepcopy
(
HEADERS_MAPPING
)
...
...
src/apps/doc/ocr/wb.py
View file @
a5da875
...
...
@@ -118,6 +118,8 @@ class BSWorkbook(Workbook):
find_count
=
len
(
header_col_list
)
if
find_count
<
2
:
find_count
=
0
elif
classify
==
consts
.
NEW_ZHIFUBAO_CLASSIFY
and
find_count
<
3
:
find_count
=
0
else
:
for
idx
,
header_col
in
header_col_list
:
sheet_header_info
.
setdefault
(
ws
.
title
,
{})
.
setdefault
(
header_col
,
idx
)
...
...
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