mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +01:00
Reduce outliers in motion data to ensure consistent scaling (#10452)
This commit is contained in:
parent
39a29d148e
commit
45a318dfed
@ -407,6 +407,8 @@ def motion_activity():
|
||||
mean = df["motion"].mean()
|
||||
std = df["motion"].std()
|
||||
df["motion"] = (df["motion"] - mean) / std
|
||||
outliers = df.quantile(0.999)["motion"]
|
||||
df[df > outliers] = outliers
|
||||
df["motion"] = (
|
||||
(df["motion"] - df["motion"].min())
|
||||
/ (df["motion"].max() - df["motion"].min())
|
||||
|
Loading…
Reference in New Issue
Block a user