make default motion a little more sensitive

This commit is contained in:
Blake Blackshear
2021-07-07 07:32:13 -05:00
parent f4aa02cc19
commit f26f7b8d3f
2 changed files with 6 additions and 4 deletions

View File

@@ -99,11 +99,13 @@ 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, 120)
config["frame_height"] = max(frame_shape[0] // 6, 180)
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.003912363
config["contour_area"] = (
config["frame_height"] * frame_width * 0.00173611111
)
mask = config.get("mask", "")
config["raw_mask"] = mask