From ba749d5d1190a62c64c1ed227b6abb93ab2bf6af Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Thu, 19 Feb 2015 10:40:36 -0800 Subject: [PATCH] Remove unused rpi_stream.py file --- acatcher/rpi_stream.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 acatcher/rpi_stream.py diff --git a/acatcher/rpi_stream.py b/acatcher/rpi_stream.py deleted file mode 100644 index acfb488..0000000 --- a/acatcher/rpi_stream.py +++ /dev/null @@ -1,24 +0,0 @@ -# adapted from http://petrkout.com/electronics/low-latency-0-4-s-video-streaming-from-raspberry-pi-mjpeg-streamer-opencv/ - -import cv2 -import numpy as np -import sys - -#stream=urllib.urlopen('http://192.168.0.193:8080/?action=stream') -stream=sys.stdin -bytes='' -while True: - r = stream.read(1024) - if (len(r) == 0): - exit(0) - bytes+=r - a = bytes.find('\xff\xd8') - b = bytes.find('\xff\xd9') - if a!=-1 and b!=-1: - jpg = bytes[a:b+2] - bytes= bytes[b+2:] - i = cv2.imdecode(np.fromstring(jpg, dtype=np.uint8),cv2.CV_LOAD_IMAGE_COLOR) - cv2.imshow('i',i) - if cv2.waitKey(1) == 27: - exit(0) -