diff --git a/web/public/locales/en/views/faceLibrary.json b/web/public/locales/en/views/faceLibrary.json index 08ba2c673f..289ff40cf6 100644 --- a/web/public/locales/en/views/faceLibrary.json +++ b/web/public/locales/en/views/faceLibrary.json @@ -5,7 +5,8 @@ }, "details": { "person": "Person", - "confidence": "Confidence", + "subLabelScore": "Sub Label Score", + "scoreInfo": "The sub label score is the weighted score for all of the recognized face confidences, so this may differ from the score shown on the snapshot.", "face": "Face Details", "faceDesc": "Details for the face and associated object", "timestamp": "Timestamp" diff --git a/web/src/pages/FaceLibrary.tsx b/web/src/pages/FaceLibrary.tsx index 6586e1c5ce..46c90214b6 100644 --- a/web/src/pages/FaceLibrary.tsx +++ b/web/src/pages/FaceLibrary.tsx @@ -21,6 +21,11 @@ import { DropdownMenuTrigger, DropdownMenuSeparator, } from "@/components/ui/dropdown-menu"; +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover"; import { Toaster } from "@/components/ui/sonner"; import { Tooltip, @@ -42,6 +47,7 @@ import { isDesktop, isMobile } from "react-device-detect"; import { useTranslation } from "react-i18next"; import { LuImagePlus, + LuInfo, LuPencil, LuRefreshCw, LuScanFace, @@ -647,10 +653,23 @@ function TrainingGrid({ {selectedEvent?.data.sub_label_score && (
- {t("details.confidence")} +
+ {t("details.subLabelScore")} + + +
+ + Info +
+
+ + {t("details.scoreInfo")} + +
+
- {Math.round(selectedEvent?.data?.sub_label_score || 0) * 100}% + {Math.round((selectedEvent?.data?.sub_label_score || 0) * 100)}%
)}