From 26119e40567d3d74d8f292ca860443bbf624575f Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Fri, 3 Apr 2020 15:12:41 -0500 Subject: [PATCH] tweak lighting, fix error message --- control_pixel.py | 2 +- run_detect.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/control_pixel.py b/control_pixel.py index 409bff5..0f5b038 100644 --- a/control_pixel.py +++ b/control_pixel.py @@ -4,4 +4,4 @@ pixels = neopixel.NeoPixel(board.D18, 24) def ledOff(): pixels.fill((0,0,0)) def ledOn(): - pixels.fill((0,0,0)) \ No newline at end of file + pixels.fill((40,40,40)) \ No newline at end of file diff --git a/run_detect.py b/run_detect.py index b88ed1f..c851f64 100644 --- a/run_detect.py +++ b/run_detect.py @@ -110,10 +110,11 @@ else : try: data = conn.recv(1024) if not data: break - print(str(data)) + #print(str(data)) if str(data) == "b'Continue'": 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) + print("[ INFO ] Waiting for the next item") except socket.error: print("[ EXIT ] Socket connection error.") break