NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
refactor motion calculation (#10380)
Nicolas Mowen3515361320e2
diff --git a/frigate/api/review.py b/frigate/api/review.pyindex 4170a1a913..937f7948d8 100644--- a/frigate/api/review.py+++ b/frigate/api/review.py@@ -404,6 +404,9 @@ def motion_activity():# normalize datadf = df.resample(f"{scale}S").sum().fillna(0.0)+ mean = df["motion"].mean()+ std = df["motion"].std()+ df["motion"] = (df["motion"] - mean) / stddf["motion"] = ((df["motion"] - df["motion"].min())/ (df["motion"].max() - df["motion"].min())