mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 06:50:58 +00:00
* fix genai settings ui - add roles widget to select roles for genai providers - add dropdown in semantic search to allow selection of embeddings genai provider * tweak grouping to prioritize fieldOrder before groups 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 * mobile tweaks stack buttons, add more space on profiles pane, and move the overridden badge beneath the description * language consistency * prevent camera config sections from being regenerated for profiles * conditionally import axengine module to match other detectors * i18n * update vscode launch.json for new integrated browser * formatting
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const lpr: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/license_plate_recognition",
|
|
fieldDocs: {
|
|
enhancement: "/configuration/license_plate_recognition#enhancement",
|
|
},
|
|
restartRequired: [],
|
|
fieldOrder: ["enabled", "min_area", "enhancement", "expire_time"],
|
|
hiddenFields: [],
|
|
advancedFields: ["expire_time", "enhancement"],
|
|
overrideFields: ["enabled", "min_area", "enhancement"],
|
|
},
|
|
global: {
|
|
fieldOrder: [
|
|
"enabled",
|
|
"model_size",
|
|
"detection_threshold",
|
|
"min_area",
|
|
"recognition_threshold",
|
|
"min_plate_length",
|
|
"format",
|
|
"match_distance",
|
|
"known_plates",
|
|
"enhancement",
|
|
"debug_save_plates",
|
|
"device",
|
|
"replace_rules",
|
|
],
|
|
advancedFields: [
|
|
"detection_threshold",
|
|
"recognition_threshold",
|
|
"min_plate_length",
|
|
"format",
|
|
"match_distance",
|
|
"known_plates",
|
|
"enhancement",
|
|
"debug_save_plates",
|
|
"device",
|
|
"replace_rules",
|
|
],
|
|
restartRequired: ["model_size", "enhancement", "device"],
|
|
uiSchema: {
|
|
format: {
|
|
"ui:options": { size: "md" },
|
|
},
|
|
replace_rules: {
|
|
"ui:field": "ReplaceRulesField",
|
|
"ui:options": {
|
|
label: false,
|
|
suppressDescription: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default lpr;
|