Throttle camera stream to 2fps

This commit is contained in:
Paulus Schoutsen 2015-11-28 18:59:59 -08:00
parent 0df39b4df5
commit 546377e80a
2 changed files with 19 additions and 22 deletions

View file

@ -24,12 +24,10 @@ class DemoCamera(Camera):
def camera_image(self):
""" Return a faked still image response. """
image_path = os.path.join(os.path.dirname(__file__),
'demo_{}.png'.format(randint(1, 5)))
with open(image_path, 'rb') as file:
output = file.read()
return output
return file.read()
@property
def name(self):