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
f5fde5ee
authored
2021-03-23 18:38:11 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
b936ca78
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
src/apps/doc/management/commands/ocr_process.py
src/settings/conf/logging.conf
src/apps/doc/management/commands/ocr_process.py
View file @
f5fde5e
...
...
@@ -823,11 +823,12 @@ class Command(BaseCommand, LoggerMixin):
self
.
cronjob_log
.
info
(
'{0} [process complete] [task={1}]'
.
format
(
self
.
log_base
,
task_str
))
os
.
remove
(
excel_path
)
finally
:
pass
# TODO 识别结果存一张表,方便跑报表
# 更新OCR累计识别结果表
# 触发比对
compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
ocr_res_id
),
queue
=
'queue_compare'
)
#
compare.apply_async((doc.application_id, business_type, None, ocr_res_id), queue='queue_compare')
finally
:
try
:
img_save_path
=
os
.
path
.
join
(
doc_data_path
,
'img'
)
...
...
src/settings/conf/logging.conf
View file @
f5fde5e
[
loggers
]
;
online
--> 线上
OCR
日志:
ocr_process
.
py
;
folder
--> 线下
OCR
日志:
folder_ocr_process
.
py
;
bs
--> 线上流水识别结果日志,用于生成每日申请号-版式报表:
bs_statistics
.
py
;
license
--> 线上证件识别结果日志,用于偶尔生成结果报表:
license_statistics
.
py
;
idcard
--> 线上身份证识别结果日志,用于生成每日、每月身份证报表:
idcard_daily
.
py
、
idcard_monthly
.
py
;
compare
-->
celery
compare
日志
keys
=
root
,
running
,
exception
,
online
,
folder
,
bs
,
license
,
idcard
,
compare
,
django
.
db
.
backends
[
handlers
]
...
...
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