From 5998de610ba7a5a7db4ff5aff680d3d7f5bb2268 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 23 Feb 2020 15:53:00 -0600 Subject: [PATCH] reset detection fps --- detect_objects.py | 1 + 1 file changed, 1 insertion(+) diff --git a/detect_objects.py b/detect_objects.py index 9e02a4b8a..68d6deb6a 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -85,6 +85,7 @@ class CameraWatchdog(threading.Thread): print(f"Process for {name} is not alive. Starting again...") camera_process['fps'].value = float(self.config[name]['fps']) camera_process['skipped_fps'].value = 0.0 + camera_process['detection_fps'].value = 0.0 self.object_processor.camera_data[name]['current_frame_time'] = None process = mp.Process(target=track_camera, args=(name, self.config[name], FFMPEG_DEFAULT_CONFIG, GLOBAL_OBJECT_CONFIG, self.tflite_process.detect_lock, self.tflite_process.detect_ready, self.tflite_process.frame_ready, self.tracked_objects_queue,