mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
move debug inside try
This commit is contained in:
parent
b6af41ea31
commit
4a36c82c85
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user