NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Don't show sub labels in main label filter list (#16168)
Nicolas Mowen99d27c154e33
diff --git a/frigate/api/app.py b/frigate/api/app.pyindex 7ab54ad86c..75b29d566f 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -153,6 +153,7 @@ def config(request: Request):config["plus"] = {"enabled": request.app.frigate_config.plus_api.is_active()}config["model"]["colormap"] = config_obj.model.colormap+ config["model"]["all_attributes"] = config_obj.model.all_attributes# use merged labelampfor detector_config in config["detectors"].values():diff --git a/web/src/components/filter/SearchFilterGroup.tsx b/web/src/components/filter/SearchFilterGroup.tsxindex e8599895d8..8aa87f8e4b 100644--- a/web/src/components/filter/SearchFilterGroup.tsx+++ b/web/src/components/filter/SearchFilterGroup.tsx@@ -61,7 +61,9 @@ export default function SearchFilterGroup({}const cameraConfig = config.cameras[camera];cameraConfig.objects.track.forEach((label) => {- labels.add(label);+ if (!config.model.all_attributes.includes(label)) {+ labels.add(label);+ }});if (cameraConfig.audio.enabled_in_config) {diff --git a/web/src/types/frigateConfig.ts b/web/src/types/frigateConfig.tsindex 8ed3119dc7..9f5b937175 100644--- a/web/src/types/frigateConfig.ts+++ b/web/src/types/frigateConfig.ts@@ -343,6 +343,7 @@ export interface FrigateConfig {width: number;colormap: { [key: string]: [number, number, number] };attributes_map: { [key: string]: [string] };+ all_attributes: [string];};motion: Record<string, unknown> | null;