mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-25 17:48:38 +03:00
config field updates
add skip_motion_threshold optional switch add fps back to detect restart required
This commit is contained in:
parent
ddba2dd6e7
commit
6817108a95
@ -30,10 +30,22 @@ const detect: SectionConfigOverrides = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
global: {
|
global: {
|
||||||
restartRequired: ["width", "height", "min_initialized", "max_disappeared"],
|
restartRequired: [
|
||||||
|
"fps",
|
||||||
|
"width",
|
||||||
|
"height",
|
||||||
|
"min_initialized",
|
||||||
|
"max_disappeared",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
camera: {
|
camera: {
|
||||||
restartRequired: ["width", "height", "min_initialized", "max_disappeared"],
|
restartRequired: [
|
||||||
|
"fps",
|
||||||
|
"width",
|
||||||
|
"height",
|
||||||
|
"min_initialized",
|
||||||
|
"max_disappeared",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,12 @@ import type { SectionConfigOverrides } from "./types";
|
|||||||
const motion: SectionConfigOverrides = {
|
const motion: SectionConfigOverrides = {
|
||||||
base: {
|
base: {
|
||||||
sectionDocs: "/configuration/motion_detection",
|
sectionDocs: "/configuration/motion_detection",
|
||||||
|
fieldDocs: {
|
||||||
|
lightning_threshold:
|
||||||
|
"/configuration/motion_detection#lightning_threshold",
|
||||||
|
skip_motion_threshold:
|
||||||
|
"/configuration/motion_detection#skip_motion_on_large_scene_changes",
|
||||||
|
},
|
||||||
restartRequired: [],
|
restartRequired: [],
|
||||||
fieldOrder: [
|
fieldOrder: [
|
||||||
"enabled",
|
"enabled",
|
||||||
@ -20,6 +26,16 @@ const motion: SectionConfigOverrides = {
|
|||||||
sensitivity: ["enabled", "threshold", "contour_area"],
|
sensitivity: ["enabled", "threshold", "contour_area"],
|
||||||
algorithm: ["improve_contrast", "delta_alpha", "frame_alpha"],
|
algorithm: ["improve_contrast", "delta_alpha", "frame_alpha"],
|
||||||
},
|
},
|
||||||
|
uiSchema: {
|
||||||
|
skip_motion_threshold: {
|
||||||
|
"ui:widget": "optionalField",
|
||||||
|
"ui:options": {
|
||||||
|
innerWidget: "range",
|
||||||
|
step: 0.05,
|
||||||
|
suppressMultiSchema: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
hiddenFields: ["enabled_in_config", "mask", "raw_mask"],
|
hiddenFields: ["enabled_in_config", "mask", "raw_mask"],
|
||||||
advancedFields: [
|
advancedFields: [
|
||||||
"lightning_threshold",
|
"lightning_threshold",
|
||||||
@ -58,7 +74,7 @@ const motion: SectionConfigOverrides = {
|
|||||||
"frame_alpha",
|
"frame_alpha",
|
||||||
"frame_height",
|
"frame_height",
|
||||||
],
|
],
|
||||||
advancedFields: ["lightning_threshold"],
|
advancedFields: ["lightning_threshold", "skip_motion_threshold"],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user