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
3e76f8c6
authored
2024-01-22 16:51:07 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新ocr process 部分代码结构,待测试
1 parent
1bd8e3a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
3e76f8c
...
...
@@ -2448,7 +2448,10 @@ class Command(BaseCommand, LoggerMixin):
self
.
online_log
.
info
(
'{0} [stop safely]'
.
format
(
self
.
log_base
))
class
OcrResultProcess
(
Command
):
DOC_SCHEME_LIST
=
[
'ACCEPTANCE'
,
'SETTLEMENT'
,
'CONTRACTMANAGEMENT'
,
'INSURANCE'
]
class
OcrResultProcess
(
Command
,
LoggerMixin
):
def
__init__
(
self
):
self
.
wb
=
None
self
.
doc
=
None
...
...
@@ -2470,10 +2473,11 @@ class OcrResultProcess(Command):
self
.
ocr_1_res
=
{}
self
.
dda_id_bc_mapping
=
{}
self
.
report_list
=
[]
self
.
ic_merge
=
False
self
.
rp_merge
=
False
super
()
.
__init__
()
def
save_ocr_result_to_wb
(
self
):
# 4.OCR结果并且构建excel文件
bs_classify_set
=
self
.
bs_classify_set
...
...
@@ -3233,7 +3237,6 @@ class OcrResultProcess(Command):
consts
.
DDA_FIELD
,
set
())
.
add
(
dda_path
)
if
dda_record
.
is_dda_found
:
try
:
if
not
dda_record
.
is_id_found
:
for
ic_name
,
ic_id
,
ic_img_path
in
ic_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