Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vda5050
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPos-public
vda5050
Commits
de513dd3
Commit
de513dd3
authored
3 years ago
by
Hailong Zhu
Browse files
Options
Downloads
Patches
Plain Diff
- del cv2
parent
1bad6d7d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
message_sender.py
+0
-16
0 additions, 16 deletions
message_sender.py
with
0 additions
and
16 deletions
message_sender.py
+
0
−
16
View file @
de513dd3
...
...
@@ -13,7 +13,6 @@ import json
from
vehicle
import
vehicle
from
node
import
node
import
paho.mqtt.client
as
mqtt
import
cv2
import
tkinter
# MQTT setup
...
...
@@ -29,21 +28,6 @@ width = 1000
color
=
[
"
green
"
,
"
blue
"
,
"
gray
"
,
"
violet
"
,
"
yellow
"
,
"
rot
"
]
vehicle_radius
=
20
def
play_videoFile
(
filePath
,
mirror
=
False
):
cap
=
cv2
.
VideoCapture
(
filePath
)
cv2
.
namedWindow
(
'
Video Life2Coding
'
,
cv2
.
WINDOW_AUTOSIZE
)
frameTime
=
200
while
True
:
ret_val
,
frame
=
cap
.
read
()
if
mirror
:
frame
=
cv2
.
flip
(
frame
,
1
)
cv2
.
imshow
(
'
Video Life2Coding
'
,
frame
)
if
cv2
.
waitKey
(
frameTime
)
==
27
:
break
# esc to quit
cv2
.
destroyAllWindows
()
def
draw_veh
(
canvas
,
pos_x
,
pos_y
,
tag
,
color
):
canvas
.
create_oval
(
pos_x
-
vehicle_radius
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment