Led loop
This commit is contained in:
parent
0d0ec75783
commit
faf4cc1ba8
@ -749,12 +749,13 @@ if __name__ == "__main__":
|
|||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
ledsys = LEDSystem()
|
ledsys = LEDSystem()
|
||||||
ledsys.init()
|
ledsys.init()
|
||||||
cap = cv2.VideoCapture('output.mp4')
|
while True:
|
||||||
while cap.isOpened():
|
cap = cv2.VideoCapture('output.mp4')
|
||||||
ret, frame = cap.read()
|
while cap.isOpened():
|
||||||
if not ret:
|
ret, frame = cap.read()
|
||||||
break
|
if not ret:
|
||||||
ledsys.mapimage(frame, fps=60)
|
break
|
||||||
|
ledsys.mapimage(frame, fps=60)
|
||||||
|
|
||||||
show = False
|
show = False
|
||||||
ring = 1
|
ring = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user