comparison bin/picamserve @ 1089:2ee97997ee56

vidref now reads from picamserve Ignore-this: 17bc49636b291f6640f2f2a4a8f93e40
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 05 Jun 2014 07:22:29 +0000
parents bb92c50438ed
children 50a68abd2b0e
comparison
equal deleted inserted replaced
1088:bb92c50438ed 1089:2ee97997ee56
18 def capture(self, out, *a, **kw): 18 def capture(self, out, *a, **kw):
19 out.write(open('yuv.demo').read()) 19 out.write(open('yuv.demo').read())
20 def capture_continuous(self, *a, **kw): 20 def capture_continuous(self, *a, **kw):
21 for i in range(1000): 21 for i in range(1000):
22 time.sleep(1) 22 time.sleep(1)
23 yield i 23 yield str(i)
24 24
25 def setCameraParams(c, arg): 25 def setCameraParams(c, arg):
26 res = int(arg('res', 480)) 26 res = int(arg('res', 480))
27 c.resolution = { 27 c.resolution = {
28 480: (640, 480), 28 480: (640, 480),