mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 08:21:16 +03:00
previously, groups were always rendered first. now fieldOrder is respected, and any fields in a group will cause the group and all the fields in that group to be rendered in order. this allows moving the enabled switches to the top of the section
40 lines
914 B
TypeScript
40 lines
914 B
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const faceRecognition: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/face_recognition",
|
|
restartRequired: [],
|
|
fieldOrder: ["enabled", "min_area"],
|
|
hiddenFields: [],
|
|
advancedFields: [],
|
|
overrideFields: ["enabled", "min_area"],
|
|
},
|
|
global: {
|
|
fieldOrder: [
|
|
"enabled",
|
|
"model_size",
|
|
"unknown_score",
|
|
"detection_threshold",
|
|
"recognition_threshold",
|
|
"min_area",
|
|
"min_faces",
|
|
"save_attempts",
|
|
"blur_confidence_filter",
|
|
"device",
|
|
],
|
|
advancedFields: [
|
|
"unknown_score",
|
|
"detection_threshold",
|
|
"recognition_threshold",
|
|
"min_area",
|
|
"min_faces",
|
|
"save_attempts",
|
|
"blur_confidence_filter",
|
|
"device",
|
|
],
|
|
restartRequired: ["enabled", "model_size", "device"],
|
|
},
|
|
};
|
|
|
|
export default faceRecognition;
|