From e351e132f546383a6be7df3bc99ba57264dc00cb Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Thu, 4 Nov 2021 11:58:45 -0500 Subject: [PATCH] remove min frame height of 180 and increase contour area --- frigate/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index e3db81a68..a5eda7b9c 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -120,13 +120,11 @@ class RuntimeMotionConfig(MotionConfig): frame_shape = config.get("frame_shape", (1, 1)) if "frame_height" not in config: - config["frame_height"] = max(frame_shape[0] // 6, 180) + config["frame_height"] = frame_shape[0] // 6 if "contour_area" not in config: frame_width = frame_shape[1] * config["frame_height"] / frame_shape[0] - config["contour_area"] = ( - config["frame_height"] * frame_width * 0.00173611111 - ) + config["contour_area"] = config["frame_height"] * frame_width * 0.004 mask = config.get("mask", "") config["raw_mask"] = mask