From ad941215c1a39dd470087874138bf399ae56af2c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 9 Apr 2024 15:58:17 -0600 Subject: [PATCH] fix mask logic --- frigate/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index 667008187..5c4b890bc 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -359,7 +359,7 @@ class RuntimeMotionConfig(MotionConfig): # we know if any points are > 1 then it is using the # old native resolution coordinates if mask: - if isinstance(mask, list) and any(x > "1.0" for x in mask[0]): + if isinstance(mask, list) and any(x > "1.0" for x in mask[0].split(",")): relative_masks = [] for m in mask: points = m.split(",") @@ -519,7 +519,7 @@ class RuntimeFilterConfig(FilterConfig): # we know if any points are > 1 then it is using the # old native resolution coordinates if mask: - if isinstance(mask, list) and any(x > "1.0" for x in mask[0]): + if isinstance(mask, list) and any(x > "1.0" for x in mask[0].split(",")): relative_masks = [] for m in mask: points = m.split(",")