mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Always use motion estimator
This commit is contained in:
parent
1be67e2606
commit
59e539375e
@ -129,18 +129,11 @@ class MqttConfig(FrigateBaseModel):
|
|||||||
|
|
||||||
class PtzAutotrackConfig(FrigateBaseModel):
|
class PtzAutotrackConfig(FrigateBaseModel):
|
||||||
enabled: bool = Field(default=False, title="Enable PTZ auto tracking.")
|
enabled: bool = Field(default=False, title="Enable PTZ auto tracking.")
|
||||||
motion_estimator: bool = Field(default=False, title="Use Norfair motion estimator.")
|
|
||||||
track: List[str] = Field(default=DEFAULT_TRACKED_OBJECTS, title="Objects to track.")
|
track: List[str] = Field(default=DEFAULT_TRACKED_OBJECTS, title="Objects to track.")
|
||||||
required_zones: List[str] = Field(
|
required_zones: List[str] = Field(
|
||||||
default_factory=list,
|
default_factory=list,
|
||||||
title="List of required zones to be entered in order to begin autotracking.",
|
title="List of required zones to be entered in order to begin autotracking.",
|
||||||
)
|
)
|
||||||
size_ratio: float = Field(
|
|
||||||
default=0.5,
|
|
||||||
title="Target ratio of tracked object to field of view (0.2-0.9).",
|
|
||||||
ge=0.2,
|
|
||||||
le=0.9,
|
|
||||||
)
|
|
||||||
return_preset: Optional[str] = Field(
|
return_preset: Optional[str] = Field(
|
||||||
title="Name of camera preset to return to when object tracking is over."
|
title="Name of camera preset to return to when object tracking is over."
|
||||||
)
|
)
|
||||||
|
|||||||
@ -239,10 +239,7 @@ class NorfairTracker(ObjectTracker):
|
|||||||
|
|
||||||
coord_transformations = None
|
coord_transformations = None
|
||||||
|
|
||||||
if (
|
if self.ptz_autotracker_enabled:
|
||||||
self.ptz_autotracker_enabled
|
|
||||||
and self.camera_config.onvif.autotracking.motion_estimator
|
|
||||||
):
|
|
||||||
coord_transformations = self.ptz_motion_estimator.motion_estimator(
|
coord_transformations = self.ptz_motion_estimator.motion_estimator(
|
||||||
detections, frame_time, self.camera_name
|
detections, frame_time, self.camera_name
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user