Merge remote-tracking branch 'origin/master' into labthings-070
This commit is contained in:
commit
ab3c4b3745
7 changed files with 140 additions and 111 deletions
|
|
@ -10,7 +10,6 @@ import time
|
|||
import numpy as np
|
||||
from PIL import Image, ImageFont, ImageDraw
|
||||
from datetime import datetime
|
||||
import gevent
|
||||
|
||||
import logging
|
||||
|
||||
|
|
@ -221,7 +220,7 @@ class MissingCamera(BaseCamera):
|
|||
# While the iterator is not closed
|
||||
try:
|
||||
while True:
|
||||
gevent.sleep(1) # Only serve frames at 1fps
|
||||
time.sleep(1) # Only serve frames at 1fps
|
||||
# Reset stream
|
||||
self.stream.seek(0)
|
||||
self.stream.truncate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue