Disable detection by default (#16980)

* Enable detection by default

* Migrate config to have detect enabled if it is not
This commit is contained in:
Nicolas Mowen
2025-03-06 08:00:29 -06:00
committed by GitHub
parent 66d5f4f3b8
commit 30acd26898
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -32,6 +32,7 @@ class StationaryConfig(FrigateBaseModel):
class DetectConfig(FrigateBaseModel):
enabled: bool = Field(default=False, title="Detection Enabled.")
height: Optional[int] = Field(
default=None, title="Height of the stream for the detect role."
)
@@ -41,7 +42,6 @@ class DetectConfig(FrigateBaseModel):
fps: int = Field(
default=5, title="Number of frames per second to process through detection."
)
enabled: bool = Field(default=True, title="Detection Enabled.")
min_initialized: Optional[int] = Field(
default=None,
title="Minimum number of consecutive hits for an object to be initialized by the tracker.",