From 0241561c7ecd4b7b57d3894ec1c69c8799915937 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 30 Apr 2024 23:14:41 -0500 Subject: [PATCH] add descriptions --- .../components/settings/ObjectSettings.tsx | 58 ++++++++++++++----- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/web/src/components/settings/ObjectSettings.tsx b/web/src/components/settings/ObjectSettings.tsx index 03a139b3c..ac997d587 100644 --- a/web/src/components/settings/ObjectSettings.tsx +++ b/web/src/components/settings/ObjectSettings.tsx @@ -31,12 +31,37 @@ export default function ObjectSettings({ const { data: config } = useSWR("config"); const DEBUG_OPTIONS = [ - { param: "bbox", title: "Bounding boxes" }, - { param: "timestamp", title: "Timestamp" }, - { param: "zones", title: "Zones" }, - { param: "mask", title: "Motion masks" }, - { param: "motion", title: "Motion boxes" }, - { param: "regions", title: "Regions" }, + { + param: "bbox", + title: "Bounding boxes", + description: "Show bounding boxes around detected objects", + }, + { + param: "timestamp", + title: "Timestamp", + description: "Overlay a timestamp on the image", + }, + { + param: "zones", + title: "Zones", + description: "Show an outline of any defined zones", + }, + { + param: "mask", + title: "Motion masks", + description: "Show motion mask polygons", + }, + { + param: "motion", + title: "Motion boxes", + description: "Show boxes around areas where motion is detected", + }, + { + param: "regions", + title: "Regions", + description: + "Show a box of the region of interest sent to the object detector", + }, ]; const [options, setOptions] = usePersistence( @@ -117,17 +142,22 @@ export default function ObjectSettings({
- {DEBUG_OPTIONS.map(({ param, title }) => ( + {DEBUG_OPTIONS.map(({ param, title, description }) => (
- +
+ +
+ {description} +
+