2026-01-23 17:23:52 +03:00
|
|
|
// Detect Section Component
|
|
|
|
|
// Reusable for both global and camera-level detect settings
|
|
|
|
|
|
2026-01-23 19:04:50 +03:00
|
|
|
import { createConfigSection } from "./BaseSection";
|
2026-01-23 17:23:52 +03:00
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-01-23 17:23:52 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default DetectSection;
|