From 6a3a519be6d6b8513693a5ab1110e052f6fda232 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 7 Dec 2024 22:07:36 -0600 Subject: [PATCH] draw speed on debug view --- frigate/object_processing.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index ef23c3de3..a718ef2c7 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -162,7 +162,12 @@ class CameraState: box[2], box[3], text, - f"{obj['score']:.0%} {int(obj['area'])}", + f"{obj['score']:.0%} {int(obj['area'])}" + + ( + f" {float(obj['estimated_speed']):.1f}" + if obj["estimated_speed"] != 0 + else "" + ), thickness=thickness, color=color, )