draw speed on debug view

This commit is contained in:
Josh Hawkins 2024-12-07 22:07:36 -06:00
parent f191dfc597
commit 6a3a519be6

View File

@ -162,7 +162,12 @@ class CameraState:
box[2], box[2],
box[3], box[3],
text, 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, thickness=thickness,
color=color, color=color,
) )