From 2f44447a5f049042136745cb0f181c13065c367b Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 14 Mar 2025 10:04:01 -0600 Subject: [PATCH] Improve spacing and add face library to mobile --- web/src/components/menu/GeneralSettings.tsx | 13 + .../settings/ClassificationSettingsView.tsx | 235 +++++++++--------- 2 files changed, 134 insertions(+), 114 deletions(-) diff --git a/web/src/components/menu/GeneralSettings.tsx b/web/src/components/menu/GeneralSettings.tsx index b07ace2a3..3d65cf8f0 100644 --- a/web/src/components/menu/GeneralSettings.tsx +++ b/web/src/components/menu/GeneralSettings.tsx @@ -255,6 +255,19 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) { )} + {isAdmin && isMobile && ( + <> + + + + Configuration editor + + + + )} Appearance diff --git a/web/src/views/settings/ClassificationSettingsView.tsx b/web/src/views/settings/ClassificationSettingsView.tsx index 48436c525..f6ce3c37d 100644 --- a/web/src/views/settings/ClassificationSettingsView.tsx +++ b/web/src/views/settings/ClassificationSettingsView.tsx @@ -318,123 +318,130 @@ export default function ClassificationSettingsView({ - +
+ - - Face Recognition - -
-
-

- Face recognition allows people to be assigned names and when their - face is recognized Frigate will assign the person's name as a sub - label. This information is included in the UI, filters, as well as - in notifications. -

+ + Face Recognition + +
+
+

+ Face recognition allows people to be assigned names and when + their face is recognized Frigate will assign the person's name + as a sub label. This information is included in the UI, filters, + as well as in notifications. +

-
- - Read the Documentation - - -
-
-
- -
-
- { - handleClassificationConfigChange({ - face: { enabled: isChecked }, - }); - }} - /> -
- -
-
-
- - - - - License Plate Recognition - -
-
-

- Frigate can recognize license plates on vehicles and automatically - add the detected characters to the recognized_license_plate field - or a known name as a sub_label to objects that are of type car. A - common use case may be to read the license plates of cars pulling - into a driveway or cars passing by on a street. -

- -
- - Read the Documentation - - -
-
-
- -
-
- { - handleClassificationConfigChange({ - lpr: { enabled: isChecked }, - }); - }} - /> -
- -
-
-
- - - -
- - +
+
+ +
+
+ { + handleClassificationConfigChange({ + face: { enabled: isChecked }, + }); + }} + /> +
+ +
+
+
+ + + + + License Plate Recognition + +
+
+

+ Frigate can recognize license plates on vehicles and + automatically add the detected characters to the + recognized_license_plate field or a known name as a sub_label to + objects that are of type car. A common use case may be to read + the license plates of cars pulling into a driveway or cars + passing by on a street. +

+ +
+ + Read the Documentation + + +
+
+
+ +
+
+ { + handleClassificationConfigChange({ + lpr: { enabled: isChecked }, + }); + }} + /> +
+ +
+
+
+ + + +
+ + +