mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
remove area scale
This commit is contained in:
parent
0d827ce7a4
commit
4683b96d8d
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user