Update stats.py

This commit is contained in:
tpjanssen 2023-10-13 17:48:18 +02:00
parent fec977f8c7
commit d1598ad588

View File

@ -272,7 +272,7 @@ def stats_snapshot(
"audio_rms": round(camera_stats["audio_rms"].value, 4), "audio_rms": round(camera_stats["audio_rms"].value, 4),
"audio_dBFS": round(camera_stats["audio_dBFS"].value, 4), "audio_dBFS": round(camera_stats["audio_dBFS"].value, 4),
} }
stats[name] = stats["cameras"][name] # deprecate in the future? stats[name] = stats["cameras"][name] # deprecate in the future?
stats["detectors"] = {} stats["detectors"] = {}
for name, detector in stats_tracking["detectors"].items(): for name, detector in stats_tracking["detectors"].items():