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
a9491aa6
authored
2020-12-03 17:06:44 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
033c0499
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/apps/doc/consts.py
src/apps/doc/ocr/wb.py
src/apps/doc/consts.py
View file @
a9491aa
...
...
@@ -902,7 +902,7 @@ OTHER_CLASSIFY_SET = {OTHER_CLASSIFY}
LICENSE_CLASSIFY_SET_1
=
{
IC_CLASSIFY
,
VAT_CLASSIFY
,
MVC_CLASSIFY
,
MVI_CLASSIFY
}
LICENSE_CLASSIFY_SET_2
=
{
BL_CLASSIFY
,
UCI_CLASSIFY
,
EEP_CLASSIFY
,
DL_CLASSIFY
,
PP_CLASSIFY
,
BC_CLASSIFY
}
NYYH_CLASSIFY
=
17
NYYH_CLASSIFY
=
{
17
,
18
}
MS_CLASSIFY
=
21
MS_ERROR_COL
=
(
5
,
6
)
WECHART_CLASSIFY
=
12
...
...
src/apps/doc/ocr/wb.py
View file @
a9491aa
...
...
@@ -404,7 +404,7 @@ class BSWorkbook(Workbook):
row_value
=
self
.
rm_cn_char
(
row_value
,
*
consts
.
WECHART_ERROR_COL
)
elif
classify
==
consts
.
MS_CLASSIFY
:
row_value
=
self
.
rm_cn_char
(
row_value
,
*
consts
.
MS_ERROR_COL
)
elif
classify
==
consts
.
NYYH_CLASSIFY
:
elif
classify
in
consts
.
NYYH_CLASSIFY
:
row_value
=
self
.
rm_second_row
(
row_value
,
amount_cell_idx
,
over_cell_idx
)
new_ws
.
append
(
row_value
)
...
...
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