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
e9bc46f2
authored
2021-07-21 20:04:54 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
4fad0d1f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
e9bc46f
...
...
@@ -706,7 +706,8 @@ class BSWorkbook(Workbook):
ws
=
self
.
create_sheet
(
label
)
for
key
,
value
in
result_dict
.
items
():
if
isinstance
(
value
,
list
):
ws
.
append
((
key
,
*
value
))
value_list
=
[
dict_item
.
get
(
'words'
)
for
dict_item
in
value
]
ws
.
append
((
key
,
*
value_list
))
elif
isinstance
(
value
,
dict
):
if
'words'
in
value
:
ws
.
append
((
key
,
value
[
'words'
]))
...
...
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