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
903a34ba
authored
2023-01-04 18:02:19 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
FIX:文件名加'关注'的判断条件
1 parent
620e65e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
903a34b
...
...
@@ -323,8 +323,6 @@ class BSWorkbook(Workbook):
verify_res
=
'疑似伪造'
if
len
(
verify_list
)
>
0
else
'正常'
else
:
verify_res
=
''
if
verify_res
==
'疑似伪造'
:
self
.
need_follow
=
True
metadata_rows
.
append
((
'流水检测结果'
,
verify_res
))
metadata_rows
.
append
((
'图片总数'
,
res_count_tuple
[
0
]))
metadata_rows
.
append
((
'识别成功'
,
res_count_tuple
[
1
]))
...
...
@@ -336,8 +334,6 @@ class BSWorkbook(Workbook):
metadata_dict
=
json
.
loads
(
metadata
)
author
=
metadata_dict
.
pop
(
'author'
,
''
)
producer
=
metadata_dict
.
pop
(
'producer'
,
''
)
if
author
!=
''
or
(
'iText'
not
in
producer
and
'Qt'
not
in
producer
and
'Haru Free'
not
in
producer
):
self
.
need_follow
=
True
metadata_rows
.
append
((
'Author'
,
author
))
metadata_rows
.
append
((
'Producer'
,
producer
))
if
len
(
author
)
>
0
:
...
...
@@ -369,6 +365,8 @@ class BSWorkbook(Workbook):
self
.
blank_row
,
self
.
interest_keyword_header
]
)
if
len
(
verify_highlight_row
)
>
0
or
len
(
metadata_highlight_row
)
>
0
:
self
.
need_follow
=
True
return
metadata_rows
,
verify_highlight_row
,
timedelta
,
metadata_highlight_row
def
build_meta_sheet
(
self
,
role_name
,
card
,
confidence
,
code
,
verify_list
,
print_time
,
start_date
,
end_date
,
...
...
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