Skip to content
Snippets Groups Projects
Commit de513dd3 authored by Hailong Zhu's avatar Hailong Zhu
Browse files

- del cv2

parent 1bad6d7d
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment