From 2057296da9d5cf21a0e06b3f55ecd34042b1c9e4 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 15 Oct 2023 12:34:55 -0500 Subject: [PATCH] zoom out value --- frigate/ptz/autotrack.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 8fd0dc42f..d849148a3 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -838,6 +838,9 @@ class PtzAutoTracker: ) - 1 ) + if not result: + # zoom out + zoom = -(1 - zoom) if zoom != 0 else 0 logger.debug(f"{camera}: Zooming: {result} Zoom amount: {zoom}")