mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
warn in log if detect fps > 10
This commit is contained in:
parent
c1560308bf
commit
f96828724c
@ -1442,6 +1442,12 @@ class FrigateConfig(FrigateBaseModel):
|
||||
else False
|
||||
)
|
||||
|
||||
# Warn if detect fps > 10
|
||||
if camera_config.detect.fps > 10:
|
||||
logger.warning(
|
||||
"{camera_config.name} has a detect fps set higher than 10 fps. This does not need to match your camera's fps rate and may cause performance issues. Recommended value is 5 fps."
|
||||
)
|
||||
|
||||
# Default min_initialized configuration
|
||||
min_initialized = int(camera_config.detect.fps / 2)
|
||||
if camera_config.detect.min_initialized is None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user