This commit is contained in:
Cole Deck 2024-05-14 21:52:14 -05:00
parent 0d0ec75783
commit faf4cc1ba8

View File

@ -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