tweak lighting, fix error message

video
Cole Deck 5 years ago
parent eb479df122
commit 26119e4056

@ -4,4 +4,4 @@ pixels = neopixel.NeoPixel(board.D18, 24)
def ledOff(): def ledOff():
pixels.fill((0,0,0)) pixels.fill((0,0,0))
def ledOn(): def ledOn():
pixels.fill((0,0,0)) pixels.fill((40,40,40))

@ -110,10 +110,11 @@ else :
try: try:
data = conn.recv(1024) data = conn.recv(1024)
if not data: break if not data: break
print(str(data)) #print(str(data))
if str(data) == "b'Continue'": if str(data) == "b'Continue'":
waitForPi = False waitForPi = False
capture = cv2.VideoCapture('udpsrc port=9000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! rtph264depay ! avdec_h264 ! videoconvert ! appsink sync=false', cv2.CAP_GSTREAMER) capture = cv2.VideoCapture('udpsrc port=9000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! rtph264depay ! avdec_h264 ! videoconvert ! appsink sync=false', cv2.CAP_GSTREAMER)
print("[ INFO ] Waiting for the next item")
except socket.error: except socket.error:
print("[ EXIT ] Socket connection error.") print("[ EXIT ] Socket connection error.")
break break

Loading…
Cancel
Save