From 4a36c82c8589ab18c05501ea02df861e3025043a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:53:18 -0500 Subject: [PATCH] move debug inside try --- frigate/ptz/autotrack.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 42c6aba64..731c26898 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -108,6 +108,9 @@ class PtzMotionEstimator: self.coord_transformations = self.norfair_motion_estimator.update( frame, mask ) + logger.debug( + f"Motion estimator transformation: {self.coord_transformations.rel_to_abs([[0,0]])}" + ) except: # sometimes opencv can't find enough features in the image to find homography, so catch this error logger.error( @@ -117,10 +120,6 @@ class PtzMotionEstimator: self.frame_manager.close(frame_id) - logger.debug( - f"Motion estimator transformation: {self.coord_transformations.rel_to_abs([[0,0]])}" - ) - return self.coord_transformations