+
- {t("trackingDetails.lifecycleItemDesc.header.area")}
+ {t("trackingDetails.lifecycleItemDesc.header.area")}{" "}
+ {attributeAreaPx !== undefined &&
+ attributeAreaPct !== undefined && (
+
+ ({getTranslatedLabel(item.data.label)})
+
+ )}
{areaPx !== undefined && areaPct !== undefined ? (
@@ -876,9 +930,25 @@ function LifecycleIconRow({
N/A
)}
+ {attributeAreaPx !== undefined &&
+ attributeAreaPct !== undefined && (
+
+
+ {t("trackingDetails.lifecycleItemDesc.header.area")} (
+ {getTranslatedLabel(item.data.attribute)})
+
+
+ {t("information.pixels", {
+ ns: "common",
+ area: attributeAreaPx,
+ })}{" "}
+ ยท {attributeAreaPct}%
+
+
+ )}
{item.data?.zones && item.data.zones.length > 0 && (
-
+
{item.data.zones.map((zone, zidx) => {
const color = getZoneColor(zone)?.join(",") ?? "0,0,0";
return (
diff --git a/web/src/types/timeline.ts b/web/src/types/timeline.ts
index c8e5f7543..0de067406 100644
--- a/web/src/types/timeline.ts
+++ b/web/src/types/timeline.ts
@@ -16,6 +16,7 @@ export type TrackingDetailsSequence = {
data: {
camera: string;
label: string;
+ score: number;
sub_label: string;
box?: [number, number, number, number];
region: [number, number, number, number];