Browse Source

remove min frame height of 180 and increase contour area

Blake Blackshear 3 years ago
parent
commit
e351e132f5
1 changed files with 2 additions and 4 deletions
  1. 2 4
      frigate/config.py

+ 2 - 4
frigate/config.py

@@ -120,13 +120,11 @@ class RuntimeMotionConfig(MotionConfig):
         frame_shape = config.get("frame_shape", (1, 1))
         frame_shape = config.get("frame_shape", (1, 1))
 
 
         if "frame_height" not in config:
         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:
         if "contour_area" not in config:
             frame_width = frame_shape[1] * config["frame_height"] / frame_shape[0]
             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", "")
         mask = config.get("mask", "")
         config["raw_mask"] = mask
         config["raw_mask"] = mask