This commit is contained in:
Josh Hawkins 2026-01-29 10:07:31 -06:00
parent 637a38fc0f
commit eecc00865d
9 changed files with 31 additions and 13 deletions

View File

@ -119,7 +119,7 @@ class OnvifConfig(FrigateBaseModel):
)
autotracking: PtzAutotrackConfig = Field(
default_factory=PtzAutotrackConfig,
title="PTZ config",
title="Autotracking",
description="Automatically track moving objects and keep them centered in the frame using PTZ camera movements.",
)
ignore_time_mismatch: bool = Field(

View File

@ -141,7 +141,7 @@ class CustomClassificationConfig(FrigateBaseModel):
)
save_attempts: int | None = Field(
default=None,
title="Saved attempts",
title="Save attempts",
description="How many classification attempts to save for recent classifications UI.",
ge=0,
)
@ -283,7 +283,7 @@ class FaceRecognitionConfig(FrigateBaseModel):
save_attempts: int = Field(
default=200,
ge=0,
title="Saved attempts",
title="Save attempts",
description="Number of face recognition attempts to retain for recent recognition UI.",
)
blur_confidence_filter: bool = Field(

View File

@ -786,7 +786,7 @@
"description": "Skip TLS verification and disable digest auth for ONVIF (unsafe; use in safe networks only)."
},
"autotracking": {
"label": "PTZ config",
"label": "Autotracking",
"description": "Automatically track moving objects and keep them centered in the frame using PTZ camera movements.",
"enabled": {
"label": "Enable Autotracking",

View File

@ -29,7 +29,7 @@
"description": "Score threshold used to change the classification state."
},
"save_attempts": {
"label": "Saved attempts",
"label": "Save attempts",
"description": "How many classification attempts to save for recent classifications UI."
},
"object_config": {

View File

@ -30,7 +30,7 @@
"description": "Minimum number of face recognitions required before applying a recognized sub-label to a person."
},
"save_attempts": {
"label": "Saved attempts",
"label": "Save attempts",
"description": "Number of face recognition attempts to retain for recent recognition UI."
},
"blur_confidence_filter": {

View File

@ -22,7 +22,7 @@
"description": "Skip TLS verification and disable digest auth for ONVIF (unsafe; use in safe networks only)."
},
"autotracking": {
"label": "PTZ config",
"label": "Autotracking",
"description": "Automatically track moving objects and keep them centered in the frame using PTZ camera movements.",
"enabled": {
"label": "Enable Autotracking",

View File

@ -19,6 +19,11 @@ export const CameraMqttSection = createConfigSection({
hiddenFields: [],
advancedFields: ["height", "quality"],
overrideFields: [],
uiSchema: {
required_zones: {
"ui:widget": "zoneNames",
},
},
},
});

View File

@ -13,12 +13,25 @@ export const OnvifSection = createConfigSection({
"user",
"password",
"tls_insecure",
"autotracking",
"ignore_time_mismatch",
"autotracking",
],
hiddenFields: ["autotracking.enabled_in_config"],
advancedFields: ["tls_insecure", "autotracking", "ignore_time_mismatch"],
hiddenFields: [
"autotracking.enabled_in_config",
"autotracking.movement_weights",
],
advancedFields: ["tls_insecure", "ignore_time_mismatch"],
overrideFields: [],
uiSchema: {
autotracking: {
required_zones: {
"ui:widget": "zoneNames",
},
track: {
"ui:widget": "objectLabels",
},
},
},
},
});

View File

@ -7,12 +7,12 @@ export const TimestampSection = createConfigSection({
sectionPath: "timestamp_style",
i18nNamespace: "config/timestamp_style",
defaultConfig: {
fieldOrder: ["position", "format", "color", "thickness", "effect"],
fieldOrder: ["position", "format", "color", "thickness"],
fieldGroups: {
appearance: ["color", "thickness", "effect"],
appearance: ["color", "thickness"],
},
hiddenFields: ["enabled_in_config"],
advancedFields: ["thickness", "effect"],
advancedFields: [],
},
});