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