mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
draw speed on debug view
This commit is contained in:
parent
f191dfc597
commit
6a3a519be6
@ -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,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user