From cb38323bca4f25bf1ccb951d6e421cecdbc263ea Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 30 Jun 2023 07:07:47 -0500 Subject: [PATCH] increase default threshold to 30 --- docs/docs/configuration/index.md | 2 +- frigate/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index ac65a1018..98e97b6a9 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -275,7 +275,7 @@ motion: # Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below) # Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive. # The value should be between 1 and 255. - threshold: 20 + threshold: 30 # Optional: The percentage of the image used to detect lightning or other substantial changes where motion detection # needs to recalibrate. (default: shown below) # Increasing this value will make motion detection more likely to consider lightning or ir mode changes as valid motion. diff --git a/frigate/config.py b/frigate/config.py index b71ba1907..7a6d93679 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -187,7 +187,7 @@ class RecordConfig(FrigateBaseModel): class MotionConfig(FrigateBaseModel): threshold: int = Field( - default=20, + default=30, title="Motion detection threshold (1-255).", ge=1, le=255,