Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
my_flask_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 164e893a
authored
Mar 11, 2024
by
周杭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除无用代码
1 parent
3502b08c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
kafka_consumer/ocr_consumer.py
kafka_consumer/ocr_consumer.py
View file @
164e893
...
@@ -211,12 +211,6 @@ def handler_sn(dst, flag, angle, path, row, connection, cursor):
...
@@ -211,12 +211,6 @@ def handler_sn(dst, flag, angle, path, row, connection, cursor):
# log.info(line[0][1][0])
# log.info(line[0][1][0])
result_list
=
flatten_list
(
result
)
result_list
=
flatten_list
(
result
)
log
.
info
(
"result_list
%
s"
,
result_list
)
with
open
(
"./log01.txt"
,
"a+"
,
encoding
=
"utf-8"
)
as
file
:
if
result_list
is
not
None
:
file
.
write
(
path
+
"----"
+
str
(
result_list
)
+
"
\n
"
)
else
:
file
.
write
(
path
+
"----"
+
"NULL"
+
"
\n
"
)
# 使用正则表达式进行过滤 获取车架号
# 使用正则表达式进行过滤 获取车架号
for
item
in
result_list
:
for
item
in
result_list
:
...
@@ -256,12 +250,6 @@ def handler_vin(dst, flag, angle, path, row, connection, cursor):
...
@@ -256,12 +250,6 @@ def handler_vin(dst, flag, angle, path, row, connection, cursor):
# log.info(line[0][1][0])
# log.info(line[0][1][0])
result_list
=
flatten_list
(
result
)
result_list
=
flatten_list
(
result
)
log
.
info
(
"result_list
%
s"
,
result_list
)
with
open
(
"./log10.txt"
,
"a+"
,
encoding
=
"utf-8"
)
as
file
:
if
result_list
is
not
None
:
file
.
write
(
path
+
"----"
+
str
(
result_list
)
+
"
\n
"
)
else
:
file
.
write
(
path
+
"----"
+
"NULL"
+
"
\n
"
)
# 使用正则表达式进行过滤 获取车架号
# 使用正则表达式进行过滤 获取车架号
vin_str
=
""
vin_str
=
""
...
...
Write
Preview
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