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
75758276
authored
2020-11-02 19:44:32 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix order
1 parent
bffd2595
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
src/apps/doc/consts.py
src/apps/doc/ocr/wb.py
src/apps/doc/consts.py
View file @
7575827
...
...
@@ -77,7 +77,7 @@ RES_SHEET_HEADER = ('页码', '序号', '结果')
RES_SUCCESS
=
'识别成功'
RES_SUCCESS_OTHER
=
'识别成功(其他类)'
RES_SUCCESS_EMPTY
=
'识别成功(空数据)'
RES_FAILED
=
'识别
识别
'
RES_FAILED
=
'识别
失败
'
CARD_RATIO
=
0.9
UNKNOWN_CARD
=
'未知卡号'
...
...
src/apps/doc/ocr/wb.py
View file @
7575827
...
...
@@ -504,6 +504,7 @@ class BSWorkbook(Workbook):
def
res_sheet
(
self
,
res_list
):
if
res_list
:
res_list
.
sort
(
key
=
lambda
x
:
(
x
[
0
],
x
[
1
]))
ws
=
self
.
create_sheet
(
consts
.
RES_SHEET_NAME
)
ws
.
append
(
consts
.
RES_SHEET_HEADER
)
for
res_tuple
in
res_list
:
...
...
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