forked from Github/frigate
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user