From b43728e5ab85ab5197d9439e28e3274cc8ad8f26 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 6 Oct 2023 08:08:49 -0500 Subject: [PATCH] additional debug statements --- frigate/ptz/autotrack.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 9767dc648..2f123e3a1 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -629,16 +629,16 @@ class PtzAutoTracker: # debug zooming if True: logger.debug( - f"{camera}: Zoom test: near left edge: {bb_left > edge_threshold * camera_width}" + f"{camera}: Zoom test: far from left edge: {bb_left > edge_threshold * camera_width}" ) logger.debug( - f"{camera}: Zoom test: near right edge: {bb_right < (1 - edge_threshold) * camera_width}" + f"{camera}: Zoom test: far from right edge: {bb_right < (1 - edge_threshold) * camera_width}" ) logger.debug( - f"{camera}: Zoom test: near top edge: {bb_top > edge_threshold * camera_height}" + f"{camera}: Zoom test: far from top edge: {bb_top > edge_threshold * camera_height}" ) logger.debug( - f"{camera}: Zoom test: near bottom edge: {bb_bottom < (1 - edge_threshold) * camera_height}" + f"{camera}: Zoom test: far from bottom edge: {bb_bottom < (1 - edge_threshold) * camera_height}" ) logger.debug( f"{camera}: Zoom test: below distance threshold: {(below_distance_threshold)}" @@ -649,6 +649,12 @@ class PtzAutoTracker: logger.debug( f"{camera}: Zoom test: below velocity threshold: {below_velocity_threshold} velocity x: {abs(average_velocity[0])}, x threshold: {velocity_threshold_x}, velocity y: {abs(average_velocity[1])}, y threshold: {velocity_threshold_y}" ) + logger.debug( + f"{camera}: Zoom test: at max zoom: {(at_max_zoom)}" + ) + logger.debug( + f"{camera}: Zoom test: at min zoom: {(at_min_zoom)}" + ) # Zoom in conditions if (