exception handling

This commit is contained in:
Josh Hawkins 2023-09-28 15:48:44 -05:00
parent 7bb2006493
commit c58c19da3a

View File

@ -111,7 +111,7 @@ class PtzMotionEstimator:
logger.debug( logger.debug(
f"Motion estimator transformation: {self.coord_transformations.rel_to_abs([[0,0]])}" f"Motion estimator transformation: {self.coord_transformations.rel_to_abs([[0,0]])}"
) )
except: except Exception:
# sometimes opencv can't find enough features in the image to find homography, so catch this error # sometimes opencv can't find enough features in the image to find homography, so catch this error
logger.warning( logger.warning(
f"Autotracker: motion estimator couldn't get transformations for {camera_name} at frame time {frame_time}" f"Autotracker: motion estimator couldn't get transformations for {camera_name} at frame time {frame_time}"