draw speed on debug view

This commit is contained in:
Josh Hawkins 2024-12-07 22:07:36 -06:00
parent 4e77d09bac
commit 4b099164d8

View File

@ -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,
)