From 4683b96d8d186f2c4f9bd0abac7792cd63810a76 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 24 Sep 2023 18:41:08 -0500 Subject: [PATCH] remove area scale --- frigate/ptz/autotrack.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 08745ee85..5678e8d00 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -528,10 +528,7 @@ class PtzAutoTracker: if camera_config.onvif.autotracking.zooming == ZoomingModeEnum.relative: # relative zooming concurrently with pan/tilt - # double the object area so we leave some room around the object - # perhaps make this a configurable value? - area_scale = 2 - zoom = (obj.obj_data["area"] * area_scale) / (camera_width * camera_height) + zoom = obj.obj_data["area"] / (camera_width * camera_height) # test if we need to zoom out if not self._should_zoom_in(