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
b0883c72
authored
2020-11-10 22:52:31 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
614fdf38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
b0883c7
...
...
@@ -313,6 +313,8 @@ class BSWorkbook(Workbook):
@staticmethod
def
rm_cn_char
(
row_value
,
pre_col
,
next_col
):
if
len
(
row_value
)
<=
next_col
:
return
row_value
row_value
=
list
(
row_value
)
if
isinstance
(
row_value
[
pre_col
],
str
):
cn_chars
=
re
.
findall
(
consts
.
CN_RE
,
row_value
[
pre_col
])
...
...
@@ -335,7 +337,7 @@ class BSWorkbook(Workbook):
max_idx
=
amount_cell_idx
else
:
max_idx
=
0
if
max_idx
>
1
:
if
1
<
max_idx
<
len
(
row_value
)
:
append_list
=
[]
for
i
in
range
(
2
,
max_idx
+
1
):
if
isinstance
(
row_value
[
i
],
str
):
...
...
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