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
8a08f33f
authored
2024-09-26 21:04:36 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:
1 parent
df14bb3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
8a08f33
...
...
@@ -1624,7 +1624,7 @@ class Command(BaseCommand, LoggerMixin):
try
:
channel
,
img_path
,
text_list
=
img_queue
.
get
(
block
=
False
)
except
Exception
as
e
:
#
self.online_log.info('{0} [img_2_ocr_1] [queue empty]'.format(self.log_base))
self
.
online_log
.
info
(
'{0} [img_2_ocr_1] [queue empty]'
.
format
(
self
.
log_base
))
time
.
sleep
(
self
.
sleep_time_img_get
)
continue
else
:
...
...
@@ -2463,6 +2463,7 @@ class Command(BaseCommand, LoggerMixin):
except
Exception
as
e
:
self
.
online_log
.
error
(
'{0} [process error (pdf & img remove)] [task={1}] [error={2}]'
.
format
(
self
.
log_base
,
task_str
,
traceback
.
format_exc
()))
self
.
online_log
.
info
(
'{0} [res_2_wb after while] [len(error_list)={1}] [img_queue={2}] [finish_queue={3}]'
.
format
(
self
.
log_base
,
len
(
error_list
),
img_queue
.
empty
(),
finish_queue
.
empty
()))
def
handle
(
self
,
*
args
,
**
kwargs
):
db
.
close_old_connections
()
...
...
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