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

35 lines
784 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
i18nNamespace: "config/detect",
defaultConfig: {
fieldOrder: [
"enabled",
"fps",
"width",
"height",
"min_initialized",
"max_disappeared",
"annotation_offset",
"stationary",
],
fieldGroups: {
resolution: ["width", "height"],
tracking: ["min_initialized", "max_disappeared"],
},
hiddenFields: ["enabled_in_config"],
advancedFields: [
"min_initialized",
"max_disappeared",
"annotation_offset",
"stationary",
],
},
});
export default DetectSection;