Throttle camera stream to 2fps
This commit is contained in:
parent
0df39b4df5
commit
546377e80a
2 changed files with 19 additions and 22 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue