use relative coordinates for masks & zones (#10912)

* Handle zones and masks as relative coords

* Ensure that zone coords are saved as relative

* Get motion mask working with relative coordinates

* Rewrite object mask to use relative coordinates as well

* Formatting

* Fix always trying to convert

* fix mask logic
This commit is contained in:
Nicolas Mowen
2024-04-09 16:51:38 -06:00
committed by GitHub
parent ef52a1d6f0
commit 15e4f5c771
5 changed files with 258 additions and 48 deletions

View File

@@ -434,7 +434,7 @@ def motion_activity():
.fillna(0.0)
.to_frame()
)
cameras = df["camera"].resample(f"{scale}S").agg(lambda x: ",".join(set(x)))
cameras = df["camera"].resample(f"{scale}s").agg(lambda x: ",".join(set(x)))
df = motion.join(cameras)
length = df.shape[0]