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
85b24dac
authored
2020-12-15 14:29:01 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
remove ocr res logger
1 parent
557a6941
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
85b24da
...
...
@@ -476,8 +476,8 @@ class Command(BaseCommand, LoggerMixin):
ocr_1_res
=
ocr_1_response
.
json
()
end_time
=
time
.
time
()
speed_time
=
int
(
end_time
-
start_time
)
self
.
cronjob_log
.
info
(
'{0} [ocr_1 success] [img={1}] [
res
={2}] [speed_time={3}]'
.
format
(
self
.
log_base
,
img_path
,
ocr_1_res
,
speed_time
))
self
.
cronjob_log
.
info
(
'{0} [ocr_1 success] [img={1}] [
url
={2}] [speed_time={3}]'
.
format
(
self
.
log_base
,
img_path
,
url
,
speed_time
))
break
else
:
ocr_1_res
=
{}
...
...
@@ -588,8 +588,8 @@ class Command(BaseCommand, LoggerMixin):
end_time
=
time
.
time
()
speed_time
=
int
(
end_time
-
start_time
)
self
.
cronjob_log
.
info
(
'{0} [ocr_2 success] [img={1}] [
res={2}] [speed_time={3
}]'
.
format
(
self
.
log_base
,
img_path
,
ocr_2_res
,
speed_time
))
'{0} [ocr_2 success] [img={1}] [
speed_time={2
}]'
.
format
(
self
.
log_base
,
img_path
,
speed_time
))
if
classify
==
consts
.
BC_CLASSIFY
:
name
=
'有'
...
...
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