Skip to content

NVR with realtime local object detection for IP cameras

Ensure object lifecycle ratio is re-normalized to camera aspect (#15717)

Josh Hawkins98338e4c7f77
diff --git a/web/src/components/overlay/detail/ObjectLifecycle.tsx b/web/src/components/overlay/detail/ObjectLifecycle.tsx
index 7a667529e8..9512e4a7ee 100644
--- a/web/src/components/overlay/detail/ObjectLifecycle.tsx
+++ b/web/src/components/overlay/detail/ObjectLifecycle.tsx
@@ -477,7 +477,10 @@ export default function ObjectLifecycle({
</p>
{Array.isArray(item.data.box) &&
item.data.box.length >= 4
- ? (item.data.box[2] / item.data.box[3]).toFixed(2)
+ ? (
+ aspectRatio *
+ (item.data.box[2] / item.data.box[3])
+ ).toFixed(2)
: "N/A"}
</div>
</div>