ui.py: fix model lead plotting

old-commit-hash: efc9084409f61afb8da753353f25d336f51c2163
This commit is contained in:
Willem Melching
2022-02-21 11:56:20 +01:00
parent f48147b333
commit cc65efe7b0
+3 -3
View File
@@ -185,12 +185,12 @@ def plot_model(m, img, calibration, top_down):
if calibration is None or top_down is None:
return
for lead in m.leads:
for lead in m.leadsV3:
if lead.prob < 0.5:
continue
x, y, _, _ = lead.xyva
x_std, _, _, _ = lead.xyvaStd
x, y = lead.x[0], lead.y[0]
x_std = lead.xStd[0]
x -= RADAR_TO_CAMERA
_, py_top = to_topdown_pt(x + x_std, y)