mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
slow down the preview feed to lower cpu usage
This commit is contained in:
parent
480175d70f
commit
b7b4e38f62
@ -120,8 +120,8 @@ def main():
|
|||||||
|
|
||||||
def imagestream(camera_name):
|
def imagestream(camera_name):
|
||||||
while True:
|
while True:
|
||||||
# max out at 5 FPS
|
# max out at 1 FPS
|
||||||
time.sleep(0.2)
|
time.sleep(1)
|
||||||
frame = cameras[camera_name].get_current_frame_with_objects()
|
frame = cameras[camera_name].get_current_frame_with_objects()
|
||||||
# encode the image into a jpg
|
# encode the image into a jpg
|
||||||
ret, jpg = cv2.imencode('.jpg', frame)
|
ret, jpg = cv2.imencode('.jpg', frame)
|
||||||
|
Loading…
Reference in New Issue
Block a user