mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
reduce to 0
This commit is contained in:
parent
40baad4a4f
commit
2da80a8a5e
@ -293,11 +293,10 @@ def review_activity():
|
|||||||
data: list[dict[str, float]] = []
|
data: list[dict[str, float]] = []
|
||||||
|
|
||||||
for rec in all_recordings:
|
for rec in all_recordings:
|
||||||
factor = 0.1 if rec.objects > 0 else 1.0
|
|
||||||
data.append({
|
data.append({
|
||||||
"start_time": rec.start_time,
|
"start_time": rec.start_time,
|
||||||
"motion": rec.motion * factor,
|
"motion": rec.motion if rec.objects == 0 else 0,
|
||||||
"audio": rec.dBFS * factor,
|
"audio": rec.dBFS if rec.objects == 0 else 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
# resample data using pandas to get activity on scaled basis
|
# resample data using pandas to get activity on scaled basis
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user