diff --git a/web/src/views/settings/ObjectSettingsView.tsx b/web/src/views/settings/ObjectSettingsView.tsx index 8b6c99f4f..927d08ee0 100644 --- a/web/src/views/settings/ObjectSettingsView.tsx +++ b/web/src/views/settings/ObjectSettingsView.tsx @@ -11,13 +11,17 @@ import { usePersistence } from "@/hooks/use-persistence"; import { Skeleton } from "@/components/ui/skeleton"; import { useCameraActivity } from "@/hooks/use-camera-activity"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover"; import { ObjectType } from "@/types/ws"; import useDeepMemo from "@/hooks/use-deep-memo"; import { Card } from "@/components/ui/card"; import { getIconForLabel } from "@/utils/iconUtil"; import { capitalizeFirstLetter } from "@/utils/stringUtil"; -import { Link } from "react-router-dom"; -import { LuExternalLink } from "react-icons/lu"; +import { LuInfo } from "react-icons/lu"; type ObjectSettingsViewProps = { selectedCamera?: string; @@ -37,6 +41,30 @@ export default function ObjectSettingsView({ param: "bbox", title: "Bounding boxes", description: "Show bounding boxes around tracked objects", + info: ( + <> +

+ Object Bounding Box Colors +

+ + + ), }, { param: "timestamp", @@ -57,12 +85,34 @@ export default function ObjectSettingsView({ param: "motion", title: "Motion boxes", description: "Show boxes around areas where motion is detected", + info: ( + <> +

+ Motion Boxes +

+

+ Red boxes will be overlaid on areas of the frame where motion is + currently being detected +

+ + ), }, { param: "regions", title: "Regions", description: "Show a box of the region of interest sent to the object detector", + info: ( + <> +

+ Region Boxes +

+

+ Bright green boxes will be overlaid on areas of interest in the + frame that are being sent to the object detector. +

+ + ), }, ]; @@ -136,17 +186,6 @@ export default function ObjectSettingsView({ statistics. The object list shows a time-delayed summary of detected objects.

-
- - Read the meaning of bounding box colors - - -
@@ -158,19 +197,34 @@ export default function ObjectSettingsView({
- {DEBUG_OPTIONS.map(({ param, title, description }) => ( + {DEBUG_OPTIONS.map(({ param, title, description, info }) => (
- -
+
+ + {info && ( + + +
+ + Info +
+
+ + {info} + +
+ )} +
+
{description}