From b7b4e38f62e513f639a1c597bb49ecf2239aed99 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 15 Dec 2019 07:17:13 -0600 Subject: [PATCH] slow down the preview feed to lower cpu usage --- detect_objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detect_objects.py b/detect_objects.py index 9ac2adfb6..0ec6bf5bb 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -120,8 +120,8 @@ def main(): def imagestream(camera_name): while True: - # max out at 5 FPS - time.sleep(0.2) + # max out at 1 FPS + time.sleep(1) frame = cameras[camera_name].get_current_frame_with_objects() # encode the image into a jpg ret, jpg = cv2.imencode('.jpg', frame)