From 82d4bf8ab5b8d12316578dbf6e2cfc464bcadaa9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 19 May 2024 22:36:41 -0500 Subject: [PATCH] Log warning for high detect fps (#11435) * warn in log if detect fps > 10 * change message --- frigate/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frigate/config.py b/frigate/config.py index c2711aa0e..05ca61f4d 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -1442,6 +1442,12 @@ class FrigateConfig(FrigateBaseModel): else False ) + # Warn if detect fps > 10 + if camera_config.detect.fps > 10: + logger.warning( + f"{camera_config.name} detect fps is set to {camera_config.detect.fps}. This does NOT need to match your camera's frame rate. High values could lead to reduced performance. Recommended value is 5." + ) + # Default min_initialized configuration min_initialized = int(camera_config.detect.fps / 2) if camera_config.detect.min_initialized is None: