diff --git a/frigate/config.py b/frigate/config.py index d3820f47e..55acc1a44 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -518,7 +518,7 @@ class ZoneConfig(BaseModel): loitering_time: int = Field( default=0, ge=0, - title="Number of seconds that an object must loiter to be considered in the zone." + title="Number of seconds that an object must loiter to be considered in the zone.", ) objects: List[str] = Field( default_factory=list, diff --git a/frigate/object_processing.py b/frigate/object_processing.py index b2a8559c2..4cbaa11d6 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -535,9 +535,7 @@ class CameraState: ): max_target_box = self.ptz_autotracker_thread.ptz_autotracker.tracked_object_metrics[ self.name - ][ - "max_target_box" - ] + ]["max_target_box"] side_length = max_target_box * ( max( self.camera_config.detect.width,