frigate/web/src/components/config-form/sections/DetectSection.tsx

34 lines
761 B
TypeScript
Raw Normal View History

// Detect Section Component
// Reusable for both global and camera-level detect settings
2026-01-23 19:04:50 +03:00
import { createConfigSection } from "./BaseSection";
export const DetectSection = createConfigSection({
sectionPath: "detect",
2026-01-23 19:04:50 +03:00
defaultConfig: {
fieldOrder: [
"enabled",
"fps",
"width",
"height",
"min_initialized",
"max_disappeared",
"annotation_offset",
"stationary",
],
fieldGroups: {
2026-01-29 23:58:13 +03:00
resolution: ["enabled", "width", "height"],
2026-01-23 19:04:50 +03:00
tracking: ["min_initialized", "max_disappeared"],
},
hiddenFields: ["enabled_in_config"],
advancedFields: [
"min_initialized",
"max_disappeared",
"annotation_offset",
"stationary",
],
},
});
export default DetectSection;